body {
            font-family: var(--mm-font-ui, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
            font-feature-settings: "ss01", "cv11";
            background: #f0f2f5;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(102, 126, 234, 0.3); border-radius: 3px; }

        .dashboard {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1.5rem 1.25rem 3rem;
            animation: fadeIn 0.4s ease;
        }

        /* ========== WELCOME ========== */
        .welcome {
            margin-bottom: 2rem;
        }

        .welcome h1 {
            font-family: var(--mm-font-display, inherit);
            font-size: 1.7rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: #1a202c;
        }

        .welcome p {
            font-size: 0.9rem;
            color: #a0aec0;
            margin-top: 0.2rem;
        }

        /* ========== NAV GRID ========== */
        .nav-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .nav-card {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            transition: all 0.25s;
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            position: relative;
            overflow: hidden;
        }

        .nav-card:hover {
            box-shadow: 0 8px 28px rgba(0,0,0,0.09);
            transform: translateY(-3px);
        }

        .nav-card-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .nav-card-body { flex: 1; min-width: 0; }

        .nav-card-title {
            font-family: var(--mm-font-display, inherit);
            font-size: 1.05rem;
            font-weight: 700;
            letter-spacing: -0.01em;
            color: #1a202c;
            margin-bottom: 0.15rem;
        }

        .nav-card-desc {
            font-size: 0.82rem;
            color: #a0aec0;
            line-height: 1.4;
            margin-bottom: 0.5rem;
        }

        .nav-card-stat {
            font-family: var(--mm-font-mono, inherit);
            font-size: 0.8rem;
            font-weight: 600;
            color: #667eea;
            background: #eef2ff;
            padding: 0.2rem 0.6rem;
            border-radius: 8px;
            display: inline-block;
        }

        .nav-card-stat.alert {
            background: #fee2e2;
            color: #e53e3e;
        }

        /* ========== NEWS ========== */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .section-header h2 {
            font-family: var(--mm-font-display, inherit);
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.015em;
            color: #1a202c;
        }

        .section-header a {
            font-size: 0.85rem;
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
        }

        .section-header a:hover { text-decoration: underline; }

        .news-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .news-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            transition: all 0.25s;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }

        .news-card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            transform: translateY(-3px);
        }

        .news-cover {
            position: relative;
            width: 100%;
            height: 130px;
            background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #ddd6fe 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            overflow: hidden;
        }

        /* Image en position absolue : sortie du flux flex, elle remplit
           la vignette sans la déformer ni déborder (min-height auto des
           items flex faisait dépasser les grandes images). */
        .news-cover img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .news-body { padding: 1rem; flex: 1; }

        .news-title {
            font-family: var(--mm-font-display, inherit);
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: -0.01em;
            color: #1a202c;
            margin-bottom: 0.2rem;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-meta { font-size: 0.75rem; color: #a0aec0; }

        /* === Derniers échanges disponibles ===
           Une seule ligne : flex nowrap, on cache les cards qui dépassent
           (overflow:hidden). Les cards ont une largeur min, donc plus l'écran
           est large, plus on en voit. */
        .exchange-row {
            display: flex;
            flex-wrap: nowrap;
            gap: 1rem;
            overflow: hidden;
        }
        .exchange-row > .exchange-card {
            flex: 0 0 150px;
        }
        @media (max-width: 560px) {
            /* Sur mobile, on garde un scroll horizontal au lieu de tout cacher. */
            .exchange-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
            .exchange-row::-webkit-scrollbar { display: none; }
        }
        .exchange-card {
            background: white;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            transition: box-shadow 0.25s, transform 0.25s;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }
        .exchange-card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            transform: translateY(-3px);
        }
        .exchange-cover {
            position: relative;
            width: 100%;
            height: 110px;
            background: linear-gradient(135deg, #cdeef0 0%, #a5d8e6 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            overflow: hidden;
        }
        .exchange-cover img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .exchange-body { padding: 0.6rem 0.7rem; }
        .exchange-name {
            font-family: var(--mm-font-display, inherit);
            font-size: 0.85rem;
            font-weight: 700;
            color: #1a202c;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .exchange-owner { font-size: 0.72rem; color: #a0aec0; margin-top: 3px; }

        /* === Activité des amis === */
        .activity-list {
            background: white;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            overflow: hidden;
        }
        .activity-item {
            display: grid;
            grid-template-columns: auto auto 1fr auto;
            align-items: center;
            gap: 0.6rem;
            padding: 0.6rem 0.9rem;
            border-bottom: 1px solid #e9ecf3;
            text-decoration: none;
            color: #2d3748;
            font-size: 0.85rem;
            line-height: 1.3;
            transition: background 0.12s, padding-left 0.15s;
            position: relative;
        }
        .activity-item:last-child { border-bottom: none; }
        .activity-item:nth-child(even) { background: #fafbfc; }
        .activity-item:hover {
            background: #eef2ff;
        }
        .activity-item:hover::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        }

        .activity-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.7rem;
            flex-shrink: 0;
            overflow: hidden;
        }
        .activity-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Pastille colorée avec l'icône du type d'activité */
        .activity-bullet {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }
        .activity-bullet.bul-product { background: #e0e7ff; }
        .activity-bullet.bul-wishlist { background: #fce7f3; color: #db2777; }
        .activity-bullet.bul-top { background: #fef3c7; }
        .activity-bullet.bul-comment { background: #dcfce7; }
        .activity-bullet.bul-exchange { background: #cdeef0; color: #0e7490; }

        .activity-text {
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .activity-text .activity-actor { color: #1a202c; font-weight: 600; }
        .activity-text .activity-target { color: #1a202c; font-weight: 600; }
        .activity-text .activity-context { color: #a0aec0; }
        .activity-text .activity-rating { color: #f59e0b; font-weight: 600; margin-left: 0.2rem; }

        .activity-meta {
            font-size: 0.72rem;
            color: #a0aec0;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .activity-empty {
            padding: 1.25rem;
            text-align: center;
            color: #a0aec0;
            font-size: 0.85rem;
        }

        @media (max-width: 640px) {
            .activity-item {
                padding: 0.5rem 0.7rem;
                gap: 0.5rem;
                font-size: 0.82rem;
            }
            .activity-bullet { width: 24px; height: 24px; font-size: 0.8rem; }
            .activity-meta { font-size: 0.68rem; }
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 900px) {
            .nav-grid { grid-template-columns: repeat(2, 1fr); }
            .news-row { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 640px) {
            .dashboard { padding: 1rem 0.75rem 2rem; }
            .welcome h1 { font-size: 1.3rem; }
            .nav-grid { grid-template-columns: 1fr; gap: 0.75rem; }
            .nav-card { padding: 1.25rem; }
            .news-row { grid-template-columns: 1fr; }
        }
