/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.dashboard-grid .card.full-width {
    grid-column: 1 / -1;
}

/* ── Week calendar (activity view) ── */
.week-calendar {
    display: flex;
    gap: 4px;
}

.week-cal-day {
    flex: 1;
    text-align: center;
    padding: 8px 2px 6px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    min-width: 0;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.week-cal-day.today {
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 16px rgba(99,102,241,0.12);
}

.week-cal-day.past {
    opacity: 0.65;
}

.week-cal-name {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 700;
}

.week-cal-num {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 2px 0 5px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.week-cal-day.today .week-cal-num {
    color: var(--accent-hover);
}

.week-cal-activities {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-height: 22px;
    align-items: center;
}

.week-cal-bar {
    width: 85%;
    height: 18px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.week-cal-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1.3);
}

.week-cal-bar-icon svg {
    width: 10px;
    height: 10px;
}

.week-cal-bar.planned {
    border: 1px dashed rgba(255,255,255,0.3);
    box-shadow: none;
}

.week-cal-empty {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    margin-top: 4px;
}

/* ── Week resume ── */
.week-resume-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.week-resume-main {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.week-resume-big {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.week-resume-big small {
    font-size: 0.6em;
    font-weight: 500;
    color: var(--text-muted);
}

.week-resume-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
    margin-top: 2px;
}

.week-resume-disciplines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.week-resume-disc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.week-resume-disc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.week-resume-disc-icon svg {
    width: 16px;
    height: 16px;
}

.week-resume-disc-info {
    flex: 1;
    min-width: 0;
}

.week-resume-disc-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.week-resume-disc-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.week-resume-trends {
    display: flex;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.week-resume-trend {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Week strip (legacy, keep for compatibility) ── */
.week-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.week-day {
    flex: 1;
    text-align: center;
    padding: 10px 4px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    min-width: 0;
    transition: all var(--transition);
}

.week-day.today {
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 16px rgba(99,102,241,0.12);
}

.week-day.has-session {
    border-bottom: 2px solid var(--accent);
}

.week-day-name {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.week-day-number {
    font-size: 1rem;
    font-weight: 700;
    margin: 3px 0 4px;
    letter-spacing: -0.5px;
}

.week-day.today .week-day-number {
    color: var(--accent-hover);
}

.week-day-dots {
    display: flex;
    gap: 3px;
    justify-content: center;
    min-height: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-swim     { background: var(--swim); box-shadow: 0 0 5px rgba(56,189,248,0.5); }
.dot-bike     { background: var(--bike); box-shadow: 0 0 5px rgba(167,139,250,0.5); }
.dot-run      { background: var(--run);  box-shadow: 0 0 5px rgba(52,211,153,0.5); }
.dot-strength { background: var(--strength); box-shadow: 0 0 5px rgba(251,146,60,0.5); }

/* ── Discipline split bar ── */
.discipline-split {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-input);
    margin: 8px 0;
}

.discipline-split-segment {
    transition: width 0.6s ease;
    min-width: 2px;
}

.split-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.split-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.split-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* ── Upcoming sessions ── */
.next-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.next-session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.next-session-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-light);
    transform: translateX(2px);
}

.next-session-disc {
    width: 3px;
    height: 34px;
    border-radius: 2px;
    flex-shrink: 0;
}

.next-session-info { flex: 1; min-width: 0; }

.next-session-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.next-session-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Charge legend ── */
.charge-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    align-items: center;
}
.charge-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    color: var(--text-muted);
}
.charge-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex-shrink: 0;
}
.charge-legend-info {
    width: 100%;
    font-size: 0.62rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
}

/* ── Conformity ── */
.conformity-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .week-cal-day { padding: 6px 1px 5px; }
    .week-cal-num { font-size: 0.85rem; }
    .week-cal-bar { height: 16px; }
    .week-cal-bar-icon svg { width: 8px; height: 8px; }
    .week-resume-big { font-size: 1.2rem; }
    .week-resume-main { padding: 10px 4px; }
}
