/* Small help controls inherit no primary-button styles. */
button.stat-help {
    display:inline-flex; align-items:center; justify-content:center;
    width:13.6px; height:13.6px; min-width:13.6px; padding:0; margin:0 0 0 7px;
    vertical-align:middle; border:1px solid #77818b; border-radius:50%;
    background:transparent; color:#99a3ae; font:600 8.8px/1 Inter,sans-serif;
    box-shadow:none; text-transform:none; letter-spacing:0; cursor:help;
}
button.stat-help:hover, button.stat-help[aria-expanded="true"] { color:#d9e0e7; border-color:#a3aeb9; background:#ffffff0c; }
button.stat-help:focus-visible { outline:2px solid #00c890; outline-offset:3px; }
.day-scorecard-form .session-metric-heading {
    display:flex; align-items:center; gap:0;
    margin:18px 0 7px;
}
.day-scorecard-form .session-metric-heading:first-child { margin-top:0; }
.day-scorecard-form .session-metric-heading label,
.day-scorecard-form .session-metric-heading label:first-child {
    display:inline; margin:0;
}
.day-page .day-scorecard-form button.stat-help {
    width:13.6px; height:13.6px; min-width:13.6px;
    margin:0 0 0 7px; padding:0;
    border-radius:50%;
}
.stat-help-popover {
    position:fixed; z-index:10000; box-sizing:border-box; width:260px;
    padding:15px 16px; border:1px solid #44505c; border-radius:9px;
    background:#1b232c; color:#e6edf3; box-shadow:0 12px 35px #0005;
    font:400 13px/1.55 Inter,sans-serif; text-align:left;
    letter-spacing:0; text-transform:none;
}
.stat-help-popover[hidden] { display:none; }
.stat-help-popover p { margin:0 0 8px; font:inherit; color:inherit; }
.stat-help-popover a { color:#a7b7c8; font-size:12px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.stat-help-popover a:hover { color:#fff; }
.stat-help-popover a:focus-visible { outline:2px solid #00c890; outline-offset:3px; }
html[data-theme="light"] button.stat-help { color:#737e8a; border-color:#8e99a4; }
html[data-theme="light"] button.stat-help:hover, html[data-theme="light"] button.stat-help[aria-expanded="true"] { color:#3b4753; background:#00000008; }
html[data-theme="light"] .stat-help-popover { background:#fff; color:#34414e; border-color:#cbd3db; box-shadow:0 12px 35px #1c2e4326; }
html[data-theme="light"] .stat-help-popover a { color:#526b7f; }

/* Keep calendar labels and their emoji/help icon together. */
.home-dashboard .achievement-grid .analytics-icon {
    display:flex; flex-direction:row; align-items:center; gap:6px;
    flex-wrap:nowrap; white-space:nowrap;
}
.home-dashboard .achievement-grid .analytics-label {
    display:inline-flex; align-items:center; white-space:nowrap;
}
.home-dashboard .achievement-grid .stat-help { margin-left:5px; flex-shrink:0; }
/* Always one row; smaller screens can scroll the six cards together. */
.home-dashboard .achievement-grid {
    grid-template-columns:repeat(6,minmax(140px,1fr));
    overflow-x:auto; padding-bottom:4px;
    scrollbar-width:thin; scrollbar-color:#526170 transparent;
}
@media (max-width:1600px) {
    .home-dashboard .achievement-grid { gap:8px; }
    .home-dashboard .achievement-grid .analytics-card { padding:12px 10px; }
    .home-dashboard .achievement-grid .analytics-label { font-size:9.5px; letter-spacing:.15px; }
    .home-dashboard .achievement-grid .analytics-icon { font-size:14px; gap:4px; }
    .home-dashboard .achievement-grid .stat-help { margin-left:4px; }
}
