.profile-activity-card { box-sizing: border-box; width: 100%; min-width: 0; margin: 22px 0; padding: clamp(18px, 4vw, 26px); border: 1px solid rgba(162, 137, 255, .28); border-radius: 24px; background: linear-gradient(135deg, rgba(39, 29, 68, .68), rgba(15, 19, 30, .97) 62%); box-shadow: inset 0 1px 0 rgba(201, 182, 255, .09), 0 12px 36px rgba(0, 0, 0, .14); overflow: visible; }
.profile-activity-card h2 { margin: 0; font-size: clamp(18px, 4.6vw, 22px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: #f3efff; overflow-wrap: anywhere; }
.profile-activity-heading > p { margin: 7px 0 0; color: #a9b2c6; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-activity-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; min-width: 0; margin-top: 16px; color: #a9b2c6; font-size: 13px; line-height: 1.5; }
.profile-activity-summary strong { color: #c3afff; font-size: 26px; line-height: 1.2; font-weight: 750; }
.profile-activity-summary strong > span { margin-left: 3px; color: #8f91ac; font-size: 17px; font-weight: 500; }
.profile-activity-chart { width: 100%; min-width: 0; min-height: 170px; margin: 12px 0 4px; }
.profile-activity-chart .apexcharts-canvas, .profile-activity-chart svg { max-width: 100%; }
/* Apex injects its theme CSS after these styles. The scoped theme selectors
   must outrank its light/dark rule, including partial browser-cache updates. */
.profile-activity-chart .apexcharts-tooltip,
.profile-activity-chart .apexcharts-tooltip.apexcharts-theme-light,
.profile-activity-chart .apexcharts-tooltip.apexcharts-theme-dark { max-width: min(190px, calc(100vw - 32px)); border: 1px solid var(--chart-tooltip-border); border-radius: 12px; background: var(--chart-tooltip-bg); color: var(--chart-tooltip-title); box-shadow: 0 7px 22px #0007; transition: opacity .15s ease; }
.profile-activity-tooltip { display: grid; gap: 5px; padding: 11px 13px; color: #f3efff; font-size: 13px; line-height: 1.4; }
.profile-activity-chart .profile-activity-tooltip strong { color: var(--chart-tooltip-title); }
.profile-activity-chart .profile-activity-tooltip span { color: var(--chart-tooltip-text); }
/* Touch/click focus keeps the normal dark spacing between SVG cells. Only
   keyboard focus gets an accent ring, without changing the 4px geometry. */
.profile-activity-chart [data-activity-date]:focus { outline: none; }
.profile-activity-chart [data-activity-date]:focus-visible { stroke: var(--accent-light); stroke-width: 4px; }
.profile-activity-legend { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 7px; color: #a9b2c6; font-size: 12px; line-height: 1.5; }
.profile-activity-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.activity-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.activity-dot--inactive { background: #25293b; border: 1px solid #535369; }
.activity-dot--active { background: #9b83ff; box-shadow: 0 0 10px #9b83ff33; }
.profile-activity-day-status { min-height: 38px; margin: 14px 0 0; color: #a9b2c6; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-activity-loading, .profile-activity-error { padding: 20px 0; margin: 0; color: #a9b2c6; font-size: 14px; line-height: 1.6; }
.profile-activity-error p { margin: 0 0 12px; }
.profile-activity-retry { box-sizing: border-box; min-height: 44px; padding: 10px 20px; border: 1px solid #8b7be877; border-radius: 12px; background: #302547; color: #d4c6ff; font: inherit; font-weight: 600; cursor: pointer; }
.profile-activity-retry:disabled { opacity: .6; cursor: wait; }
.profile-activity-retry:focus-visible, .profile-activity-details summary:focus-visible { outline: 2px solid #b29cf8; outline-offset: 3px; }
.profile-activity-details { margin-top: 6px; color: #a9b2c6; font-size: 12px; line-height: 1.5; }
.profile-activity-details summary { padding: 6px 0; cursor: pointer; color: #c3afff; }
.profile-activity-details ol { list-style: none; padding: 8px 0 0; margin: 0; }
.profile-activity-details li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-top: 1px solid #aebede14; }
