/* ── XP Dashboard ── */
        .xp-dashboard {
            background: var(--paper-warm);
            border: var(--border-sketch);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lift);
            padding: 24px;
            margin-bottom: 28px;
        }
        .xp-dashboard-top {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .level-badge-big {
            font-family: var(--font-body); font-weight: 700;
            font-size: 1.4rem;
            padding: 10px 20px;
            border: 2px solid currentColor;
            border-radius: var(--radius);
            text-transform: uppercase;
            letter-spacing: 1px;
            white-space: nowrap;
        }
        .xp-stats {
            flex: 1;
            min-width: 200px;
        }
        .xp-total {
            font-family: var(--font-body); font-weight: 700;
            font-size: 2rem;
            color: var(--accent-gold);
            line-height: 1;
        }
        .xp-total-label {
            font-family: var(--font-hand);
            font-size: 1rem;
            color: var(--ink-light);
            margin-bottom: 6px;
        }
        .xp-streak {
            font-family: var(--font-hand);
            font-size: 1.1rem;
            color: var(--ink-light);
            margin-top: 6px;
        }
        .xp-streak strong {
            color: var(--accent-gold);
            font-size: 1.3rem;
        }

        /* ── XP Progress Bar ── */
        .xp-progress-wrap {
            margin-top: 4px;
        }
        .xp-progress-label {
            font-family: var(--font-hand);
            font-size: 1rem;
            color: var(--ink-light);
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
        }
        .xp-progress-bar-track {
            height: 18px;
            background: var(--paper-alt);
            border: var(--border-sketch);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }
        .xp-progress-bar-fill {
            height: 100%;
            background: var(--accent-gold);
            transition: width 0.6s ease;
            position: relative;
        }
        .xp-progress-bar-fill::after {
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0;
            width: 4px;
            background: rgba(255,255,255,0.4);
        }
        .xp-maxed {
            font-family: var(--font-body); font-weight: 700;
            font-size: 1rem;
            color: var(--accent-gold);
            text-align: center;
            padding: 8px 0;
        }

        /* ── Homework Cards ── */
        .hw-card {
            border: var(--border-sketch);
            border-radius: var(--radius);
            background: var(--paper-warm);
            box-shadow: var(--shadow-paper);
            margin-bottom: 12px;
            overflow: hidden;
        }
        .hw-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            cursor: pointer;
            user-select: none;
        }
        .hw-card-header:hover { background: var(--paper-alt); }
        .hw-card-title {
            font-family: var(--font-hand);
            font-size: 1.3rem;
            font-weight: 600;
            flex: 1;
        }
        .hw-card-meta {
            font-family: var(--font-hand);
            font-size: 0.95rem;
            color: var(--ink-light);
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .hw-card-body {
            display: none;
            padding: 0 16px 16px;
            border-top: 1px solid #ddd;
        }
        .hw-card-body.open { display: block; }
        .hw-description {
            font-family: var(--font-hand);
            font-size: 1.1rem;
            color: var(--ink-light);
            margin: 12px 0;
            line-height: 1.5;
        }
        .hw-status-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 2px;
            font-family: var(--font-hand);
            font-size: 0.9rem;
            font-weight: 600;
        }
        .hw-status-pending { background: var(--accent-gold-light); color: var(--accent-gold); }
        .hw-status-submitted { background: #e3f2fd; color: #1565c0; }
        .hw-status-reviewed { background: #e8f5e9; color: #2e7d32; }
        .hw-status-needs_work { background: #fce4ec; color: #c62828; }

        .hw-xp-badge {
            background: var(--accent-gold-light);
            color: var(--accent-gold);
            border: 1px solid var(--accent-gold);
            padding: 2px 10px;
            border-radius: 2px;
            font-family: var(--font-hand);
            font-size: 0.95rem;
            font-weight: 600;
        }
        .hw-type-badge {
            background: var(--paper-alt);
            border: var(--border-light);
            padding: 2px 8px;
            border-radius: 2px;
            font-family: var(--font-hand);
            font-size: 0.9rem;
            color: var(--ink-light);
        }

        /* ── Coach Feedback ── */
        .coach-feedback-box {
            background: #e8f5e9;
            border: 1px solid #a5d6a7;
            border-radius: var(--radius);
            padding: 12px 14px;
            margin-top: 12px;
        }
        .coach-feedback-box h4 {
            font-family: var(--font-hand);
            font-size: 1rem;
            color: #2e7d32;
            margin-bottom: 4px;
        }
        .coach-feedback-box p {
            font-family: var(--font-hand);
            font-size: 1.05rem;
            color: var(--ink);
        }
        .needs-work-box {
            background: #fce4ec;
            border-color: #ef9a9a;
        }
        .needs-work-box h4 { color: #c62828; }

        /* ── Practice Logger ── */
        .practice-logger {
            background: var(--paper-warm);
            border: var(--border-sketch);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 20px;
        }
        .practice-logger h3 {
            font-family: var(--font-body); font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 12px;
        }
        .practice-row {
            display: flex;
            gap: 10px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .practice-row .form-group {
            flex: 1;
            min-width: 140px;
            margin: 0;
        }

        /* ── Submission Form ── */
        .submit-form {
            background: var(--paper-alt);
            border: var(--border-light);
            border-radius: var(--radius);
            padding: 16px;
            margin-top: 12px;
        }
        .submit-form h4 {
            font-family: var(--font-hand);
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: var(--ink);
        }

        /* ── Assign Form ── */
        .assign-form {
            background: var(--paper-warm);
            border: var(--border-sketch);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 24px;
        }
        .assign-form h3 {
            font-family: var(--font-body); font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 16px;
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        @media (max-width: 600px) {
            .form-row { grid-template-columns: 1fr; }
            .xp-dashboard-top { gap: 12px; }
        }

        /* ── Submission List (Coach) ── */
        .submission-item {
            border: var(--border-light);
            border-radius: var(--radius);
            background: var(--paper);
            padding: 12px 14px;
            margin-bottom: 8px;
        }
        .submission-item-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }
        .submission-student-name {
            font-family: var(--font-hand);
            font-size: 1.1rem;
            font-weight: 600;
        }
        .submission-notes {
            font-family: var(--font-hand);
            font-size: 1rem;
            color: var(--ink-light);
            margin: 6px 0;
        }
        .review-controls {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px;
            align-items: flex-end;
        }
        .review-controls .form-group {
            margin: 0;
            flex: 1;
            min-width: 140px;
        }

        /* ── XP Log Timeline ── */
        .xp-timeline {
            list-style: none;
            padding: 0;
        }
        .xp-timeline-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .xp-timeline-item:last-child { border-bottom: none; }
        .xp-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--accent-gold);
            border: 2px solid var(--ink);
            margin-top: 4px;
            flex-shrink: 0;
        }
        .xp-timeline-desc {
            font-family: var(--font-hand);
            font-size: 1.05rem;
            flex: 1;
            line-height: 1.3;
        }
        .xp-timeline-amount {
            font-family: var(--font-hand);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--accent-gold);
            white-space: nowrap;
        }
        .xp-timeline-date {
            font-size: 0.85rem;
            color: var(--ink-faint);
            font-family: var(--font-hand);
        }

        /* ── Empty States ── */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            font-family: var(--font-hand);
            font-size: 1.2rem;
            color: var(--ink-light);
        }
        .empty-state .empty-icon {
            font-size: 2.5rem;
            display: block;
            margin-bottom: 10px;
        }

        /* ── Assigned HW list (coach) ── */
        .assigned-hw-item {
            border: var(--border-sketch);
            border-radius: var(--radius);
            background: var(--paper);
            padding: 14px 16px;
            margin-bottom: 10px;
            cursor: pointer;
        }
        .assigned-hw-item:hover { background: var(--paper-warm); }
        .assigned-hw-item-header {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .assigned-hw-item-title {
            font-family: var(--font-hand);
            font-size: 1.2rem;
            font-weight: 600;
            flex: 1;
        }
        .sub-count {
            font-family: var(--font-hand);
            font-size: 0.95rem;
            color: var(--ink-light);
        }
        .assigned-hw-submissions {
            display: none;
            margin-top: 14px;
            border-top: 1px solid #ddd;
            padding-top: 14px;
        }
        .assigned-hw-submissions.open { display: block; }

        /* ── Section header ── */
        .section-heading {
            font-family: var(--font-body); font-weight: 700;
            font-size: 2rem;
            margin-bottom: 4px;
        }
        .section-sub {
            font-family: var(--font-hand);
            font-size: 1.15rem;
            color: var(--ink-light);
            margin-bottom: 24px;
        }
