/* =========================================================
   Asso Dashboard — CSS scopé sous .assodash-shell
   Généré depuis test-page/styles.css par build-css.py
   NE PAS éditer à la main — relancer `python3 build-css.py`.
   ========================================================= */

.assodash-shell,
.assodash-shell *,
.assodash-shell *::before,
.assodash-shell *::after {
    box-sizing: border-box;
}

.assodash-shell h1,
.assodash-shell h2,
.assodash-shell h3,
.assodash-shell h4,
.assodash-shell h5,
.assodash-shell h6 {
    font-family: inherit;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    font-weight: 600;
}

.assodash-shell button,
.assodash-shell input,
.assodash-shell select,
.assodash-shell textarea {
    font-family: inherit;
    color: inherit;
}

.assodash-shell a {
    text-decoration: none;
}

/* =========================================================
   Asso Dashboard — prototype
   Style sobre et lisible au premier coup d'œil
   ========================================================= */

.assodash-shell {
    --bg: #f4f6f4;
    --panel: #ffffff;
    --border: #e2e6e2;
    --text: #1e2a23;
    --text-muted: #5c6b63;
    --primary: #2f7a54;
    --primary-hover: #246041;
    --accent: #e07a3c;

    --status-backlog: #8898a0;
    --status-available: #e07a3c;
    --status-progress: #2f7a54;
    --status-review: #c48a1a;
    --status-done: #6a7a6e;

    --priority-medium: #8898a0;
    --priority-high: #c48a1a;
    --priority-urgent: #c0392b;

    --radius: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.assodash-shell.dark {
    --bg: #141a17;
    --panel: #1e2621;
    --border: #2d3832;
    --text: #eef3ef;
    --text-muted: #9eaaa3;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}


.assodash-shell * {
    box-sizing: border-box;
}


.assodash-shell {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}


.assodash-shell .page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}


.assodash-shell .hidden {
    display: none !important;
}


/* ---------- Hero ---------- */

.assodash-shell .hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}


.assodash-shell .hero h1 {
    margin: 4px 0;
    font-size: 28px;
}


.assodash-shell .hero-copy {
    color: var(--text-muted);
    margin: 0;
    max-width: 520px;
}


.assodash-shell .eyebrow {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 600;
}


.assodash-shell .hero-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-muted);
}


.assodash-shell .hero-card strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}


.assodash-shell .hero-card p {
    margin: 2px 0;
}


/* ---------- Panels ---------- */

.assodash-shell .panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}


.assodash-shell .panel + .panel,
.assodash-shell .tab-panel > .panel + .panel {
    margin-top: 16px;
}


.assodash-shell .panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}


.assodash-shell .panel-head h2,
.assodash-shell .panel-head h3 {
    margin: 0;
    font-size: 18px;
}


/* ---------- Auth ---------- */

.assodash-shell .auth-panel {
    max-width: 440px;
    margin: 40px auto;
}


/* ---------- Topbar ---------- */

.assodash-shell .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}


.assodash-shell .topbar-title {
    margin: 4px 0 0;
    font-size: 20px;
}


.assodash-shell .topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}


/* ---------- Tabs ---------- */

.assodash-shell .tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    margin-bottom: 16px;
}


.assodash-shell .tab {
    flex: 1;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}


.assodash-shell .tab:hover {
    background: var(--bg);
}


.assodash-shell .tab.is-active {
    background: var(--primary);
    color: #fff;
}


/* ---------- Forms ---------- */

.assodash-shell .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}


.assodash-shell .field span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}


.assodash-shell .field.inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}


.assodash-shell .field input,
.assodash-shell .field select,
.assodash-shell .field textarea,
.assodash-shell select,
.assodash-shell input[type="text"],
.assodash-shell input[type="email"],
.assodash-shell input[type="password"],
.assodash-shell input[type="date"],
.assodash-shell textarea {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}


.assodash-shell input:focus,
.assodash-shell select:focus,
.assodash-shell textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
}


.assodash-shell textarea {
    resize: vertical;
    min-height: 60px;
}


.assodash-shell .stack-md {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.assodash-shell .stack-lg {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.assodash-shell .inline-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}


.assodash-shell .inline-form input[type="text"] {
    flex: 2 1 220px;
    min-width: 180px;
}


.assodash-shell .inline-form select {
    flex: 1 1 120px;
    min-width: 110px;
}


.assodash-shell .inline-form button {
    flex: 0 0 auto;
}


.assodash-shell .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}


@media (max-width: 700px) {

    .assodash-shell .grid-3 {
        grid-template-columns: 1fr;
    }


}


/* ---------- Buttons ---------- */

.assodash-shell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}


.assodash-shell .btn-primary {
    background: var(--primary);
    color: #fff;
}


.assodash-shell .btn-primary:hover {
    background: var(--primary-hover);
}


.assodash-shell .btn-secondary {
    background: var(--panel);
    color: var(--text);
    border-color: var(--border);
}


.assodash-shell .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}


.assodash-shell .btn-ghost {
    background: transparent;
    color: var(--text-muted);
}


.assodash-shell .btn-ghost:hover {
    color: var(--text);
    background: var(--bg);
}


.assodash-shell .btn-small {
    padding: 5px 10px;
    font-size: 12px;
}


/* ---------- Feedback ---------- */

.assodash-shell .feedback {
    margin: 0;
    font-size: 13px;
    min-height: 18px;
}


.assodash-shell .feedback.error {
    color: var(--priority-urgent);
}


.assodash-shell .feedback.success {
    color: var(--primary);
}


/* ---------- Pills ---------- */

.assodash-shell .pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}


.assodash-shell .pill.accent {
    background: rgba(47, 122, 84, 0.12);
    color: var(--primary);
}


.assodash-shell .pill.neutral {
    background: var(--bg);
    color: var(--text-muted);
}


/* ---------- Stats ---------- */

.assodash-shell .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}


.assodash-shell .stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}


.assodash-shell .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}


.assodash-shell .stat-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}


/* ---------- Overview ---------- */

.assodash-shell .overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}


@media (max-width: 900px) {

    .assodash-shell .overview-grid {
        grid-template-columns: 1fr;
    }

    .assodash-shell .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}


.assodash-shell .list-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.assodash-shell .list-item {
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}


.assodash-shell .list-item header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}


.assodash-shell .meta {
    color: var(--text-muted);
    font-size: 13px;
}


.assodash-shell .meta.small {
    font-size: 12px;
}


/* ---------- Kanban ---------- */

.assodash-shell .kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}


@media (max-width: 1000px) {

    .assodash-shell .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }


}


@media (max-width: 600px) {

    .assodash-shell .kanban-board {
        grid-template-columns: 1fr;
    }


}


.assodash-shell .column {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    min-height: 140px;
}


.assodash-shell .column h4 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.assodash-shell .card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.assodash-shell .task-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.assodash-shell .task-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
    border-color: var(--primary);
}


.assodash-shell .task-card strong {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}


.assodash-shell .priority {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--priority-medium);
}


.assodash-shell .priority.high {
    background: var(--priority-high);
}


.assodash-shell .priority.urgent {
    background: var(--priority-urgent);
}


/* ---------- Events ---------- */

/* (list-item reused) */

/* ---------- Messages ---------- */

.assodash-shell .messages-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    padding: 0;
    overflow: hidden;
}


@media (max-width: 800px) {

    .assodash-shell .messages-layout {
        grid-template-columns: 1fr;
    }


}


.assodash-shell .thread-list-wrap {
    padding: 16px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

.assodash-shell .thread-list-wrap > .btn {
    align-self: stretch;
}

.assodash-shell .thread-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}


.assodash-shell .thread-item {
    padding: 10px 12px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
}


.assodash-shell .thread-item:hover {
    background: var(--panel);
}


.assodash-shell .thread-item.active {
    background: var(--panel);
    border-color: var(--primary);
}

.assodash-shell .thread-item.has-unread strong {
    font-weight: 700;
}

.assodash-shell .member-picker {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.assodash-shell .member-picker legend {
    padding: 0 6px;
    font-size: 12px;
    color: var(--muted, #6b7280);
}

.assodash-shell .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}

.assodash-shell .checkbox:hover {
    background: var(--panel);
}


.assodash-shell .thread-item strong {
    display: block;
    font-size: 14px;
}


.assodash-shell .thread-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 320px;
}


.assodash-shell .message-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px;
}


.assodash-shell .message {
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 8px;
    max-width: 80%;
}


.assodash-shell .message small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 2px;
}


.assodash-shell .message.self {
    background: rgba(47, 122, 84, 0.12);
    align-self: flex-end;
}


.assodash-shell .message-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}


.assodash-shell .message-form textarea {
    flex: 1;
}


/* ---------- Modal (détail tâche) ---------- */

.assodash-shell .modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 22, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 16px;
    z-index: 50;
    overflow-y: auto;
}


.assodash-shell .modal.hidden {
    display: none;
}


.assodash-shell .modal-dialog {
    background: var(--panel);
    color: var(--text);
    width: min(680px, 100%);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-height: 88vh;
    overflow-y: auto;
}


.assodash-shell .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}


.assodash-shell .modal-head h3 {
    margin: 4px 0 0;
    font-size: 20px;
}


.assodash-shell .modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}


/* ---------- History ---------- */

.assodash-shell .history {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}


.assodash-shell .history h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.assodash-shell .history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
}


.assodash-shell .history-list li {
    display: grid;
    grid-template-columns: 130px 90px 1fr;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 13px;
}


.assodash-shell .history-when {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}


.assodash-shell .history-who {
    font-weight: 600;
}


@media (max-width: 600px) {

    .assodash-shell .history-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }


}


/* ---------- Avatars ---------- */

.assodash-shell .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--avatar-color, #8898a0);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}


.assodash-shell .assignee-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


.assodash-shell .message small {
    display: flex;
    align-items: center;
    gap: 6px;
}


.assodash-shell .message.self {
    background: color-mix(in srgb, var(--member-color, var(--primary)) 18%, transparent);
}


.assodash-shell .history-who {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ---------- Drafts ---------- */

.assodash-shell .draft-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}


.assodash-shell .draft-item {
    padding: 10px 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.assodash-shell .draft-head {
    display: flex;
    align-items: center;
    gap: 8px;
}


.assodash-shell .draft-head strong {
    font-size: 14px;
}


.assodash-shell .share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 6px;
}


@media (max-width: 600px) {

    .assodash-shell .share-options {
        grid-template-columns: 1fr;
    }


}


.assodash-shell .share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}


.assodash-shell .share-option input[type="checkbox"] {
    width: auto;
}


.assodash-shell .radio-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 4px 0;
}


.assodash-shell .radio-line input[type="radio"] {
    width: auto;
}


.assodash-shell fieldset.field {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.assodash-shell fieldset.field[disabled] {
    opacity: 0.6;
}


/* ---------- Drafts (v2) ---------- */

.assodash-shell .draft-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.assodash-shell .draft-form-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}


.assodash-shell .draft-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
}


.assodash-shell .draft-form-title h3 {
    margin: 0;
    font-size: 16px;
}


.assodash-shell .draft-status {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}


.assodash-shell .draft-status.private {
    background: #eef1f4;
    color: #475569;
}


.assodash-shell .draft-status.shared {
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
}


.assodash-shell .draft-status.readonly {
    background: #fef3c7;
    color: #92400e;
}


.assodash-shell .share-block {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: #fafbfc;
    transition: background 0.15s;
}


.assodash-shell .share-block.open {
    background: color-mix(in srgb, var(--primary) 6%, #fafbfc);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}


.assodash-shell .share-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}


.assodash-shell .share-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}


.assodash-shell .share-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.assodash-shell .share-toggle-label strong {
    font-size: 14px;
}


.assodash-shell .share-members {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
    margin-top: 0;
}


.assodash-shell .share-block.open .share-members {
    max-height: 400px;
    opacity: 1;
    margin-top: 12px;
}


.assodash-shell .member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.assodash-shell .member-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text);
}


.assodash-shell .member-chip:hover:not([disabled]) {
    border-color: var(--member-color, var(--primary));
    transform: translateY(-1px);
}


.assodash-shell .member-chip.selected {
    border-color: var(--member-color, var(--primary));
    background: color-mix(in srgb, var(--member-color, var(--primary)) 12%, #fff);
}


.assodash-shell .member-chip[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}


.assodash-shell .chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef1f4;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-left: 2px;
}


.assodash-shell .member-chip.selected .chip-check {
    background: var(--member-color, var(--primary));
    color: #fff;
}


.assodash-shell .draft-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}


/* Draft list items — polish */

.assodash-shell .draft-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}


.assodash-shell .draft-item:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    background: #fafbfc;
}


.assodash-shell .draft-item.active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, #fff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}


/* ---------- Overview (v2) ---------- */

.assodash-shell .overview-hero {
    margin-bottom: 16px;
}


.assodash-shell .overview-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--user-color) 15%, var(--panel)) 0%,
        var(--panel) 80%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--user-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}


.assodash-shell .overview-hero-inner::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: var(--user-color);
    opacity: 0.06;
    border-radius: 50%;
    pointer-events: none;
}


.assodash-shell .hero-avatar-xl {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--avatar-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--avatar-color) 40%, transparent);
}


.assodash-shell .hero-text {
    min-width: 0;
}


.assodash-shell .hero-text .eyebrow {
    margin: 0 0 2px;
}


.assodash-shell .hero-text h2 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
}


.assodash-shell .hero-motivation {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}


.assodash-shell .hero-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}


@media (max-width: 720px) {

    .assodash-shell .overview-hero-inner {
        grid-template-columns: auto 1fr;
        gap: 14px;
    }

    .assodash-shell .hero-quick {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .assodash-shell .hero-quick .btn {
        flex: 1;
    }

    .assodash-shell .hero-text h2 {
        font-size: 20px;
    }

    .assodash-shell .hero-avatar-xl {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }


}


/* ---------- Stat cards (v2) — clickable tiles ---------- */

.assodash-shell .stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--stat-color, var(--primary));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}


.assodash-shell .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}


.assodash-shell .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--stat-color, var(--primary)) 14%, transparent);
    font-size: 22px;
    flex-shrink: 0;
}


.assodash-shell .stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.assodash-shell .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}


.assodash-shell .stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}


/* ---------- Overview grid (v2) — 2 columns on wide screens ---------- */

.assodash-shell .overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}


@media (max-width: 900px) {

    .assodash-shell .overview-grid {
        grid-template-columns: 1fr;
    }


}


/* ---------- Activité récente ---------- */

.assodash-shell .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}


.assodash-shell .activity-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}


.assodash-shell .activity-line {
    font-size: 14px;
    line-height: 1.4;
}


.assodash-shell .activity-line strong {
    color: var(--text);
}


/* ---------- List items polish ---------- */

.assodash-shell .list-item {
    transition: border-color 0.15s, background 0.15s;
}


.assodash-shell .list-item:hover {
    border-left-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 4%, var(--bg));
}

