:root {
    --blue-950: #04234f;
    --blue-900: #063b80;
    --blue-800: #075ac8;
    --blue-700: #0872ed;
    --blue-100: #e8f2ff;
    --blue-50: #f4f8ff;
    --ink: #12233a;
    --muted: #66758a;
    --line: #dce6f2;
    --white: #fff;
    --green: #147a49;
    --orange: #8b5200;
    --red: #b42318;
    --shadow: 0 16px 42px rgba(5, 48, 105, .12);
    --shadow-strong: 0 24px 70px rgba(0, 25, 65, .3);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f6f9fd; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--blue-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(100% - 24px, 1160px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--blue-950); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Accueil et authentification */
.guest-body { display: flex; min-height: 100svh; flex-direction: column; background: radial-gradient(circle at 10% 4%, rgba(64, 145, 255, .38), transparent 30%), radial-gradient(circle at 90% 94%, rgba(0, 189, 255, .2), transparent 32%), linear-gradient(145deg, #031c42 0%, #075ac8 58%, #063570 100%); }
.guest-main { display: flex; width: 100%; min-height: 0; padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); flex: 1; flex-direction: column; align-items: center; }
.guest-main > .alert { width: min(100%, 430px); margin: 0 auto 12px; }
.guest-panel { width: min(100%, 430px); margin-block: auto; padding: 24px 18px 20px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.65); border-radius: 24px; box-shadow: var(--shadow-strong); }
.guest-panel-wide { max-width: 500px; }
.guest-brand { display: flex; margin-bottom: 12px; flex-direction: column; align-items: center; gap: 7px; color: var(--blue-950); font-size: 1.25rem; font-weight: 900; text-decoration: none; }
.guest-brand img { width: 84px; height: 84px; object-fit: cover; background: white; border: 4px solid white; border-radius: 50%; box-shadow: 0 12px 28px rgba(7, 90, 200, .24); }
.guest-panel h1 { margin: 0 0 20px; color: var(--blue-950); font-size: 1.7rem; text-align: center; }
.guest-actions { display: grid; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); text-align: center; }
.guest-actions a { display: flex; min-height: 46px; padding: 10px 12px; align-items: center; justify-content: center; color: var(--blue-900); background: var(--blue-50); border: 1px solid #d3e3f7; border-radius: 12px; font-weight: 800; text-decoration: none; }
.guest-actions .guest-action-primary { color: white; background: var(--blue-900); border-color: var(--blue-900); }

/* Navigation de l’application */
.app-body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.site-header { position: sticky; z-index: 30; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.app-topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-950); font-size: 1.08rem; font-weight: 900; text-decoration: none; }
.brand-logo { width: 42px; height: 42px; object-fit: cover; background: white; border: 2px solid white; border-radius: 50%; box-shadow: 0 7px 18px rgba(7,90,200,.2); }
.desktop-nav { display: none; }
.nav-form { margin: 0; }
.logout-button { min-height: 40px; padding: 7px 11px; color: var(--blue-900); background: white; border: 1px solid #bfd2e9; border-radius: 10px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.mobile-tabbar { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; min-height: calc(65px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(4,35,79,.1); backdrop-filter: blur(16px); }
.mobile-tabbar a { display: flex; min-width: 0; min-height: 52px; padding: 5px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #52647c; border-radius: 12px; font-size: .72rem; font-weight: 800; text-decoration: none; }
.mobile-tabbar a:active { color: var(--blue-800); background: var(--blue-50); }
.mobile-tabbar a span { color: var(--blue-700); font-size: 1.18rem; line-height: 1; }
.main-content { min-height: calc(100svh - 64px); padding-block: 22px 40px; }
.site-footer { display: block; margin-top: auto; color: var(--muted); background: white; border-top: 1px solid var(--line); }
.footer-content { display: flex; min-height: 66px; padding: 12px 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-size: .75rem; }
.footer-content strong { color: var(--blue-900); font-size: .78rem; }
.guest-body .site-footer { color: #cfe2ff; background: rgba(2, 25, 61, .32); border-color: rgba(255, 255, 255, .16); }
.guest-body .footer-content strong { color: white; }

/* Typographie et composants */
h1, h2, h3 { margin: 0; color: var(--blue-950); line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 10vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
h3 { font-size: 1.05rem; }
p { margin: .65rem 0; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--blue-700); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.05rem; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(5,48,105,.07); }
.button { display: inline-flex; width: auto; min-height: 50px; padding: 11px 18px; align-items: center; justify-content: center; color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); border: 1px solid transparent; border-radius: 12px; box-shadow: 0 8px 20px rgba(7,90,200,.2); font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.button:active { transform: scale(.985); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .logout-button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(11,110,232,.3); outline-offset: 2px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-secondary { color: var(--blue-900); background: white; border-color: #bfd2e9; box-shadow: none; }
.button-small { min-height: 42px; padding: 8px 13px; font-size: .84rem; }
.button-full { width: 100%; }
.button-success { background: var(--green); }
.button-warning { color: #3b2800; background: #f4c45d; }
.button-danger { background: var(--red); }
.button-compact { min-height: 42px; padding: 8px 12px; font-size: .78rem; }
.link-button { padding: 0; color: var(--blue-800); background: transparent; border: 0; font-weight: 750; text-decoration: underline; cursor: pointer; }
.alert { width: 100%; margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: .9rem; }
.alert ul { margin: 7px 0 0; padding-left: 20px; }
.alert-success { color: #0d633b; background: #ecf9f2; border-color: #a9dfc4; }
.alert-warning { color: #7c4000; background: #fff7e7; border-color: #f0cf91; }
.alert-error { color: #8c1d16; background: #fff1f0; border-color: #efb5b0; }

/* Formulaires */
.form-stack { display: flex; flex-direction: column; gap: 9px; }
label { color: #263a56; font-size: .87rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 52px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #b7cbe3; border-radius: 11px; }
textarea { min-height: 88px; }
input:disabled, select:disabled { color: #6d7d91; background: #eef3f8; }
.form-stack .button { margin-top: 7px; }
.field-help { margin: -1px 0 6px; color: var(--muted); font-size: .78rem; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label-row a { font-size: .8rem; }
.code-input { height: 62px; text-align: center; font-size: 1.55rem; font-weight: 900; letter-spacing: .35em; }
.resend-form { margin-top: 18px; text-align: center; }
.text-center { text-align: center; }
.mail-icon { display: grid; width: 56px; height: 56px; margin: 0 auto 16px; color: var(--blue-800); background: var(--blue-100); place-items: center; border-radius: 16px; font-size: 1.4rem; }
.auth-card { padding: 22px 18px; }
.auth-card h1, .auth-card h2 { margin-bottom: 18px; font-size: 1.75rem; }
.auth-switch { margin: 20px 0 0; color: var(--muted); text-align: center; }
.narrow-page { width: min(100%, 520px); margin: auto; }
.auth-shell { width: min(100%, 460px); margin: auto; }
.auth-copy, .check-list { display: none; }
.page-heading, .dashboard-heading, .admin-heading { display: flex; margin-bottom: 22px; flex-direction: column; align-items: flex-start; gap: 14px; }
.page-heading p, .dashboard-heading p, .admin-heading p { color: var(--muted); }
.progress-pill, .admin-badge { display: inline-flex; padding: 8px 12px; align-items: center; color: var(--blue-900); background: var(--blue-100); border-radius: 999px; font-size: .8rem; font-weight: 800; }
.progress-pill span { display: inline-grid; width: 24px; height: 24px; margin-right: 5px; color: white; background: var(--blue-800); place-items: center; border-radius: 50%; }
.form-card { width: 100%; padding: 20px 16px; }
.guest-main > .page-heading, .guest-main > .form-card { width: min(100%, 920px); }
.guest-main > .page-heading { margin-top: 10px; padding: 0 4px; }
.guest-main > .page-heading h1, .guest-main > .page-heading p { color: white; }
.guest-main > .page-heading .eyebrow { color: #d8e9ff; }
.guest-main > .page-heading .progress-pill { color: var(--blue-950); background: white; }
.form-card h2 { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 17px; }
.form-grid > div { min-width: 0; }
.form-grid label { display: block; margin-bottom: 6px; }
.full-row { grid-column: 1 / -1; }
.form-actions { display: grid; gap: 10px; padding-top: 4px; }
.form-actions .button { width: 100%; }
.optional { color: var(--muted); font-size: .74rem; font-weight: 500; }

/* Profil et tableau de bord */
.profile-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.photo-card { padding: 22px 18px; text-align: center; }
.profile-photo, .photo-placeholder { display: grid; width: 128px; height: 128px; margin: 0 auto 15px; object-fit: cover; place-items: center; color: white; background: linear-gradient(145deg, var(--blue-700), var(--blue-950)); border: 5px solid var(--blue-50); border-radius: 50%; font-size: 3rem; font-weight: 900; }
.photo-card > p { color: var(--muted); }
.photo-card form { margin-top: 20px; text-align: left; }
.profile-chip { display: inline-flex; min-height: 44px; padding: 6px 12px 6px 6px; align-items: center; gap: 8px; color: var(--blue-950); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 800; text-decoration: none; }
.profile-chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.summary-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.balance-card { padding: 22px; color: #d5e6ff; background: linear-gradient(135deg, var(--blue-700), var(--blue-950)); border-radius: var(--radius); box-shadow: 0 16px 36px rgba(7,58,125,.22); }
.balance-card > span, .balance-card > strong { display: block; }
.balance-card > strong { margin: 4px 0 13px; color: white; font-size: 2.1rem; }
.balance-card small { font-size: .82rem; }
.balance-card a { color: white; font-size: .86rem; }
.status-card, .quick-card { min-height: 96px; padding: 18px; box-shadow: none; }
.status-card { display: flex; align-items: center; gap: 13px; }
.status-dot { width: 12px; height: 12px; background: #22a867; border: 4px solid #d8f4e7; border-radius: 50%; box-sizing: content-box; }
.status-card small, .status-card strong, .quick-card small, .quick-card strong, .quick-card span { display: block; }
.status-card small, .quick-card small, .quick-card span { color: var(--muted); }
.quick-card strong { margin: 4px 0; }
.quick-card span { font-size: .78rem; }
.quick-card-link { color: inherit; text-decoration: none; }
.content-section { margin-top: 34px; }
.section-title { display: flex; margin-bottom: 15px; flex-direction: column; align-items: flex-start; gap: 6px; }
.module-grid, .admin-module-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.module-card, .admin-module-card { display: flex; position: relative; min-height: 105px; padding: 17px; align-items: flex-start; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.module-card p, .admin-module-card p { margin: 4px 0 0; color: var(--muted); font-size: .83rem; }
.module-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; color: var(--blue-800); background: var(--blue-100); place-items: center; border-radius: 12px; font-weight: 900; }
.coming-soon { position: absolute; right: 12px; bottom: 9px; color: #6c7e94; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.notification-list { overflow: hidden; box-shadow: none; }
.notification-item { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border: 0; }
.notification-item p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.notification-item time { grid-column: 2; color: var(--muted); font-size: .73rem; }
.notification-dot { width: 8px; height: 8px; margin-top: 6px; background: var(--blue-700); border-radius: 50%; }
.empty-state { padding: 22px; color: var(--muted); text-align: center; }

/* Administration */
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-card { min-width: 0; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: .74rem; }
.metric-card strong { margin: 3px 0; color: var(--blue-950); font-size: 1.65rem; }
.metric-card small { color: var(--muted); font-size: .72rem; }
.metric-accent { color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-950)); border-color: transparent; }
.metric-accent span, .metric-accent strong, .metric-accent small { color: white; }
.metric-danger { background: #fff4f2; border-color: #f3c3bd; }
.metric-danger strong { color: var(--red); }
.admin-module-link { color: inherit; text-decoration: none; }
.module-card-link { color: inherit; text-decoration: none; box-shadow: 0 10px 26px rgba(5,48,105,.08); }
.module-card-link .coming-soon { color: var(--blue-800); }
.filter-card { padding: 16px; box-shadow: none; }
.filter-search-row, .filter-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.filter-search-row label, .filter-grid label { display: block; margin-bottom: 6px; }
.filter-search-row .button { width: 100%; }
.advanced-filters { margin-top: 16px; border-top: 1px solid var(--line); }
.advanced-filters > summary, .user-actions > summary { min-height: 44px; color: var(--blue-900); cursor: pointer; font-weight: 850; }
.advanced-filters > summary { padding-top: 15px; }
.filter-grid { margin-top: 16px; }
.filter-actions { margin-top: 14px; }
.filter-actions .button { width: 100%; }
.result-range { color: var(--muted); font-size: .82rem; font-weight: 800; }

/* Les utilisateurs deviennent des fiches lisibles sur téléphone. */
.user-table-wrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
.user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; }
.user-table { border-collapse: separate; border-spacing: 0; }
.user-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.user-table tbody { display: grid; gap: 13px; }
.user-table tr { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 22px rgba(5,48,105,.06); }
.user-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 12px 14px; overflow-wrap: anywhere; border-bottom: 1px solid #edf2f8; font-size: .84rem; }
.user-table td:last-child { border-bottom: 0; }
.user-table td::before { content: attr(data-label); color: #6c7e94; font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.user-table td > small, .user-identity small { display: block; margin-top: 3px; color: var(--muted); }
.user-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.user-identity img, .user-avatar-placeholder { display: grid; flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; place-items: center; color: white; background: linear-gradient(145deg, var(--blue-700), var(--blue-950)); border-radius: 50%; font-weight: 900; }
.status-badge, .role-badge, .self-account-note { display: inline-flex; width: fit-content; margin: 0 4px 4px 0; padding: 4px 8px; border-radius: 999px; font-size: .69rem; font-weight: 850; }
.status-active { color: #0d633b; background: #e4f7ed; }
.status-photo_required, .status-pending_validation { color: #865000; background: #fff3d5; }
.status-disabled, .status-suspended, .status-blocked { color: #5f4a32; background: #eee8e0; }
.status-banned { color: #921f17; background: #ffe4e1; }
.role-badge { color: var(--blue-900); background: var(--blue-100); }
.self-account-note { color: #40526b; background: #edf1f5; }
.user-actions { width: 100%; min-width: 0; }
.user-actions[open] { padding: 10px; background: var(--blue-50); border: 1px solid var(--line); border-radius: 11px; }
.user-actions form { margin-top: 8px; }
.user-actions textarea { resize: vertical; }
.status-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 8px; }
.status-actions .button { width: 100%; }
.pagination { display: flex; margin-top: 20px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .82rem; font-weight: 800; }

/* Attribution des rôles administratifs */
.role-metric-grid { grid-template-columns: 1fr; }
.role-metric-grid .role-challenge { border-left: 4px solid #0872ed; }
.role-metric-grid .role-intello { border-left: 4px solid #6c4fd3; }
.role-metric-grid .role-super-admin { border-left: 4px solid #d49500; background: #fffaf0; }
.role-definition-grid, .role-member-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.role-definition-card { display: flex; padding: 16px; align-items: flex-start; gap: 12px; box-shadow: none; }
.role-definition-card h2 { font-size: 1.05rem; }
.role-definition-card p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.role-symbol { display: grid; flex: 0 0 42px; width: 42px; height: 42px; color: white; background: var(--blue-800); place-items: center; border-radius: 12px; font-weight: 900; }
.role-definition-card.role-intello .role-symbol { background: #6c4fd3; }
.role-definition-card.role-super-admin .role-symbol { color: #553900; background: #ffd15a; }
.role-member-card { overflow: hidden; box-shadow: 0 8px 22px rgba(5,48,105,.06); }
.role-member-header { display: flex; padding: 16px; align-items: flex-start; gap: 11px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.role-member-header > div { min-width: 0; }
.role-member-header h3 { overflow-wrap: anywhere; }
.role-member-header small { display: block; margin: 2px 0 7px; color: var(--muted); overflow-wrap: anywhere; font-size: .75rem; }
.facebook-name { display: block; margin-top: 3px; color: var(--blue-800); font-size: .8rem; overflow-wrap: anywhere; }
.role-access-list { padding: 4px 14px; }
.role-access-row { display: flex; min-height: 66px; padding: 11px 0; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf2f8; }
.role-access-row:last-child { border-bottom: 0; }
.role-access-row > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); min-width: 0; align-items: center; column-gap: 8px; }
.role-access-row strong { font-size: .82rem; }
.role-access-row small { grid-column: 2; color: var(--muted); font-size: .7rem; }
.role-access-row form { flex: 0 0 auto; margin: 0; }
.role-access-row .button { min-width: 88px; min-height: 40px; padding: 7px 10px; font-size: .72rem; }
.role-state-dot { width: 9px; height: 9px; background: #b7c3d1; border-radius: 50%; box-shadow: 0 0 0 4px #edf1f5; }
.role-access-row.is-assigned .role-state-dot { background: #15945a; box-shadow: 0 0 0 4px #dcf4e8; }
.protected-role { flex: 0 0 auto; padding: 5px 8px; color: #715000; background: #fff1bf; border-radius: 999px; font-size: .67rem; font-weight: 850; }
.role-directory-table-wrap { overflow-x: auto; box-shadow: none; }
.role-directory-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.role-directory-table th { padding: 12px; color: #435771; background: var(--blue-50); border-bottom: 1px solid var(--line); font-size: .72rem; text-align: left; text-transform: uppercase; white-space: nowrap; }
.role-directory-table td { padding: 13px 12px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .8rem; }
.role-directory-table tbody tr:last-child td { border-bottom: 0; }
.role-directory-table tbody tr:hover { background: #f9fbff; }
.role-directory-table td small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.role-member-link { display: inline-block; color: var(--blue-900); font-size: .9rem; font-weight: 900; }
.role-member-link::after { content: ' →'; color: var(--blue-700); }
.role-member-detail-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.role-member-profile { display: flex; padding: 18px; align-items: flex-start; gap: 12px; box-shadow: none; }
.role-member-profile > div { min-width: 0; }
.role-member-profile h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.role-member-profile p { color: var(--muted); overflow-wrap: anywhere; font-size: .82rem; }
.role-permission-card { padding: 18px 14px; box-shadow: none; }
.role-permission-card .section-title { margin-bottom: 6px; }
.role-permission-card .role-access-row > div { grid-template-columns: 10px minmax(0, 1fr); }

/* Portefeuille et transferts NBcoins */
.money-heading p { max-width: 680px; }
.money-balance-card { padding: 22px 18px; color: #d9f7e7; background: radial-gradient(circle at 92% 10%, rgba(77,214,140,.28), transparent 34%), linear-gradient(145deg, #147a49, #06452b); border-radius: 20px; box-shadow: 0 18px 42px rgba(8,87,52,.23); }
.money-balance-card span, .money-balance-card strong { display: block; }
.money-balance-card > span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.money-balance-card > strong { margin-top: 4px; color: white; font-size: clamp(2.2rem, 12vw, 3.5rem); line-height: 1.1; }
.money-balance-card > strong small { font-size: .32em; }
.money-balance-card p { margin-bottom: 0; font-size: .8rem; }
.money-transfer-card { padding: 19px 15px; box-shadow: none; }
.money-search-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.money-search-form label { display: block; margin-bottom: 6px; }
.money-search-form .button { width: 100%; }
.money-search-results { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.money-search-results h3 { margin-bottom: 10px; }
.money-recipient-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 13px 0; align-items: center; border-bottom: 1px solid #edf2f8; }
.money-recipient-row:last-child { border-bottom: 0; }
.money-recipient-row.is-selected { margin-inline: -8px; padding-inline: 8px; background: #f0fbf5; border-radius: 12px; }
.money-recipient-row .user-avatar-placeholder { width: 46px; height: 46px; flex-basis: 46px; }
.money-recipient-row > div { min-width: 0; }
.money-recipient-row > div strong, .money-recipient-row > div span, .money-recipient-row > div small { display: block; overflow-wrap: anywhere; }
.money-recipient-row > div span { color: var(--blue-800); font-size: .8rem; font-weight: 800; }
.money-recipient-row > div small { color: var(--muted); font-size: .72rem; }
.money-recipient-row > .button { grid-column: 1 / -1; width: 100%; }
.money-selected-recipient { margin-top: 22px; padding: 17px; background: #ecf9f2; border: 1px solid #a9dfc4; border-radius: 14px; }
.money-selected-recipient h3 { margin-bottom: 2px; }
.money-selected-recipient > strong { display: block; color: #147a49; }
.money-selected-recipient > small { display: block; margin-top: 4px; color: #52647c; }
.money-amount-form { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.money-amount-form label { display: block; margin-bottom: 6px; }
.money-amount-form small { display: block; margin-top: 5px; color: var(--muted); }
.money-amount-form .button { width: 100%; }
.money-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.money-input-wrap input { border-radius: 11px 0 0 11px; }
.money-input-wrap span { display: flex; padding: 0 12px; align-items: center; color: #0d633b; background: #e5f7ed; border: 1px solid #93cfb0; border-left: 0; border-radius: 0 11px 11px 0; font-size: .78rem; font-weight: 900; }
.money-history-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 13px; padding: 5px; background: #eaf0f7; border-radius: 12px; }
.money-history-tabs a { padding: 9px 6px; color: #53657c; border-radius: 9px; font-size: .78rem; font-weight: 850; text-align: center; text-decoration: none; }
.money-history-tabs a.is-active { color: var(--blue-900); background: white; box-shadow: 0 3px 10px rgba(5,48,105,.09); }
.money-history-list { display: grid; gap: 10px; }
.money-history-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 14px 12px; align-items: center; box-shadow: none; }
.money-history-icon { display: grid; width: 38px; height: 38px; color: #147a49; background: #e4f7ed; place-items: center; border-radius: 50%; font-size: 1.15rem; font-weight: 900; }
.money-history-item.is-debit .money-history-icon { color: #b42318; background: #ffe8e5; }
.money-history-copy { min-width: 0; }
.money-history-copy strong, .money-history-copy span, .money-history-copy small { display: block; overflow-wrap: anywhere; }
.money-history-copy span { color: #425670; font-size: .77rem; }
.money-history-copy small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.money-history-amount { text-align: right; }
.money-history-amount strong, .money-history-amount small { display: block; white-space: nowrap; }
.money-history-amount strong { color: #147a49; font-size: .95rem; }
.money-history-item.is-debit .money-history-amount strong { color: #b42318; }
.money-history-amount small { color: var(--muted); font-size: .65rem; }

/* Challenges simples */
.challenge-heading p { max-width: 700px; }
.challenge-current-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 15px; padding: 18px; color: white; background: linear-gradient(145deg, var(--blue-700), var(--blue-950)); border-radius: 20px; box-shadow: 0 16px 38px rgba(4,35,79,.22); }
.challenge-presidential { background: radial-gradient(circle at 92% 10%, rgba(255,215,90,.42), transparent 30%), linear-gradient(145deg, #795400, #152d60 70%); }
.challenge-reference { display: flex; width: 88px; height: 88px; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; }
.challenge-reference small { color: #d6e7ff; font-size: .68rem; text-transform: uppercase; }
.challenge-reference strong { color: white; font-size: 2rem; line-height: 1.1; }
.challenge-current-copy { min-width: 0; }
.challenge-current-copy h2 { margin-top: 8px; color: white; font-size: 1.5rem; }
.challenge-current-copy p { margin-bottom: 0; color: #dceaff; font-size: .88rem; }
.challenge-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.challenge-badges span, .presidential-mini { display: inline-flex; padding: 4px 8px; color: var(--blue-950); background: white; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.challenge-badges .presidential-badge { color: #4c3400; background: #ffe08a; }
.challenge-submit-card, .challenge-submit-closed, .challenge-submission-status, .challenge-admin-create, .challenge-close-card { margin-top: 16px; padding: 19px 16px; }
.challenge-submit-card h2, .challenge-admin-create h2, .challenge-close-card h2 { margin-bottom: 12px; }
.challenge-submit-closed { border-color: #efc98f; background: #fffaf0; }
.challenge-submit-closed p { color: var(--muted); }
.challenge-deadline { margin-top: 9px; font-weight: 800; }
.challenge-current-copy .challenge-deadline-closed { color: #ffe3ac; }
.challenge-submission-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.entry-status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.entry-status-pending { color: #805100; background: #fff1c9; }
.entry-status-approved { color: #0d633b; background: #e4f7ed; }
.entry-status-rejected { color: #921f17; background: #ffe4e1; }
.challenge-empty { padding: 35px 18px; text-align: center; }
.challenge-empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 15px; color: var(--blue-800); background: var(--blue-100); place-items: center; border-radius: 17px; font-size: 1.7rem; font-weight: 900; }
.challenge-empty p { color: var(--muted); }
.challenge-archive-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.challenge-archive-card { display: grid; min-height: 78px; padding: 12px 14px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: inherit; background: white; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; }
.challenge-archive-ref { display: grid; width: 48px; height: 48px; color: var(--blue-900); background: var(--blue-100); place-items: center; border-radius: 13px; font-weight: 900; }
.challenge-archive-card strong, .challenge-archive-card small { display: block; }
.challenge-archive-card small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.presidential-mini { color: #503600; background: #ffe08a; }
.challenge-result-metrics { grid-template-columns: repeat(3, 1fr); }
.ranking-list { display: grid; gap: 10px; }
.ranking-card { display: grid; grid-template-columns: 38px 48px minmax(0, 1fr); gap: 10px; padding: 13px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 20px rgba(5,48,105,.06); }
.ranking-card.ranking-no-photo { grid-template-columns: 38px minmax(0, 1fr); }
.ranking-rank { display: grid; width: 36px; height: 36px; color: var(--blue-900); background: var(--blue-100); place-items: center; border-radius: 12px; font-weight: 950; }
.ranking-card > img, .ranking-avatar { display: grid; width: 48px; height: 48px; object-fit: cover; place-items: center; color: white; background: linear-gradient(145deg, var(--blue-700), var(--blue-950)); border-radius: 50%; font-weight: 900; }
.ranking-member { min-width: 0; }
.ranking-member strong, .ranking-member small { display: block; }
.ranking-member small { overflow: hidden; color: var(--muted); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.ranking-stat { padding-top: 8px; border-top: 1px solid #edf2f8; }
.ranking-stat small, .ranking-stat strong, .ranking-stat span { display: block; }
.ranking-stat small { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.ranking-stat strong { color: var(--blue-950); font-size: 1.1rem; }
.ranking-stat span { color: var(--muted); font-size: .68rem; }
.ranking-card .ranking-stat { grid-column: span 1; }
.ranking-card .ranking-member + .ranking-stat { grid-column: 2; }
.ranking-card .ranking-points { grid-column: 3; }
.ranking-no-photo .ranking-member + .ranking-stat { grid-column: 1; }
.ranking-no-photo .ranking-points { grid-column: 2; }
.ranking-position-1 { border-color: #e8bd36; background: linear-gradient(100deg, #fff9e5, white 48%); }
.ranking-position-1 .ranking-rank { color: #6d4b00; background: #ffe28a; }
.ranking-position-2 .ranking-rank { color: #465568; background: #e6ebf0; }
.ranking-position-3 .ranking-rank { color: #75401f; background: #f6d3b9; }
.general-ranking-list .ranking-card .ranking-stat,
.general-ranking-list .ranking-card .ranking-member + .ranking-stat,
.general-ranking-list .ranking-card .ranking-points { display: flex; grid-column: 1 / -1; padding-top: 7px; align-items: flex-end; justify-content: space-between; }
.challenge-admin-current { grid-template-columns: 88px minmax(0, 1fr); }
.challenge-admin-counts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.challenge-admin-counts span { padding: 9px 6px; text-align: center; background: rgba(255,255,255,.12); border-radius: 11px; font-size: .66rem; }
.challenge-admin-counts strong { display: block; color: white; font-size: 1.15rem; }
.challenge-switch-field { display: flex; min-height: 70px; padding: 12px; align-items: center; gap: 10px; background: var(--blue-50); border: 1px solid var(--line); border-radius: 12px; }
.challenge-switch-field input { flex: 0 0 24px; width: 24px; min-height: 24px; }
.challenge-switch-field label { margin: 0; }
.challenge-switch-field label small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }
.challenge-validation-table-wrap { max-height: 72vh; overflow: auto; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 22px rgba(5,48,105,.06); }
.challenge-validation-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.challenge-validation-table th { position: sticky; top: 0; z-index: 3; padding: 11px 12px; color: #435771; background: var(--blue-50); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.challenge-validation-table td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid #e8eef5; }
.challenge-validation-table tbody tr:last-child td { border-bottom: 0; }
.challenge-validation-table td:first-child, .challenge-validation-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 180px; background: white; }
.challenge-validation-table th:first-child { z-index: 4; background: var(--blue-50); }
.challenge-validation-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); }
.challenge-validation-table .entry-row-locked td { background-color: #f8fafc; }
.challenge-validation-table .entry-row-locked td:first-child { background-color: #f8fafc; }
.challenge-validation-table input { min-width: 92px; }
.challenge-validation-table textarea { min-width: 220px; resize: vertical; }
.challenge-proof-link { display: grid; width: 92px; gap: 4px; color: var(--blue-800); text-align: center; text-decoration: none; font-size: .7rem; font-weight: 900; }
.challenge-proof-link img { width: 92px; height: 64px; object-fit: contain; background: #e9eff7; border: 1px solid var(--line); border-radius: 8px; }
.challenge-row-actions { display: grid; min-width: 110px; gap: 6px; }
.review-note-readonly { display: block; max-width: 240px; color: var(--muted); white-space: pre-wrap; }
.decision-locked { color: #52657c; font-weight: 800; }
.challenge-close-card { display: grid; gap: 16px; border-color: #efc3be; }
.challenge-close-card p { color: var(--muted); }
.challenge-results-table-wrap { width: 100%; overflow-x: auto; }
.challenge-results-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .84rem; }
.challenge-results-table th { padding: 12px 14px; color: white; background: linear-gradient(135deg, #065f46, #059669); text-align: left; white-space: nowrap; }
.challenge-results-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.challenge-results-table tbody tr:last-child td { border-bottom: 0; }
.challenge-results-table tbody tr:hover td { background: #f0fdf4; }
.challenge-results-table td small { display: block; margin-top: 2px; color: var(--muted); }
.challenge-table-rank { display: grid; width: 32px; height: 32px; place-items: center; color: var(--green, #147a49); background: #ecfdf5; border-radius: 50%; font-weight: 950; }
.challenge-table-rank.rank-1 { color: #614300; background: #ffdf72; }
.challenge-table-rank.rank-2 { color: #405166; background: #dce5ef; }
.challenge-table-rank.rank-3 { color: #673b1d; background: #e9bd9a; }
.facebook-export-card { display: grid; gap: 12px; border-color: #b5dec9; }
.facebook-export-card > .button { width: 100%; }
.facebook-export-card p { color: var(--muted); }
.facebook-results-text { min-height: 330px; color: #172033; background: #fbfefc; border-color: #9fd4b8; line-height: 1.55; resize: vertical; }
.copy-feedback { min-height: 22px; margin: 0; color: var(--green) !important; font-size: .82rem; font-weight: 800; }

/* Pages d’état */
.error-page { padding: 70px 14px; text-align: center; }
.error-page > span { color: #cfe1f8; font-size: 5rem; font-weight: 900; line-height: 1; }
.error-page p { margin: 14px auto 24px; color: var(--muted); }
.module-placeholder { max-width: 760px; margin: 30px auto; padding: 28px 18px; text-align: center; }
.module-placeholder .module-icon { margin: 0 auto 18px; }
.module-placeholder .lead { margin: 12px auto 24px; }
.module-placeholder .alert { text-align: left; }
.debug-details { max-width: 800px; margin: 20px auto; padding: 15px; overflow: auto; text-align: left; background: #fff0f0; border-radius: 8px; }

@media (min-width: 560px) {
    .guest-panel { padding: 30px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .form-actions { display: flex; flex-wrap: wrap; }
    .form-actions .button { width: auto; }
    .role-metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 559px) and (max-height: 650px) {
    .guest-main { padding-block: 10px; }
    .guest-panel { padding: 14px 16px 13px; border-radius: 20px; }
    .guest-brand { margin-bottom: 5px; gap: 2px; font-size: 1.05rem; }
    .guest-brand img { width: 64px; height: 64px; }
    .guest-panel h1 { margin-bottom: 11px; font-size: 1.5rem; }
    .guest-panel input { min-height: 46px; }
    .guest-panel .button { min-height: 46px; }
    .guest-panel .form-stack { gap: 5px; }
    .guest-actions { gap: 5px; margin-top: 12px; padding-top: 10px; }
    .guest-actions a { min-height: 40px; padding: 7px 10px; }
}

@media (max-width: 719px) {
    .role-directory-table { min-width: 0; table-layout: fixed; }
    .role-directory-table .role-column-detail { display: none; }
    .role-directory-table th, .role-directory-table td { padding: 10px 7px; }
    .role-directory-table th:first-child { width: 43%; }
    .role-directory-table th:nth-child(2) { width: 23%; }
    .role-directory-table th:nth-child(3) { width: 34%; }
    .role-directory-table .role-badge { white-space: normal; }
}

@media (min-width: 720px) {
    .main-content { padding-block: 34px 60px; }
    .form-grid, .filter-grid { grid-template-columns: 1fr 1fr; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .balance-card { grid-column: 1 / -1; }
    .module-grid, .admin-module-grid { grid-template-columns: 1fr 1fr; }
    .metric-grid { grid-template-columns: repeat(4, 1fr); }
    .user-metric-grid { grid-template-columns: repeat(5, 1fr); }
    .filter-search-row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; }
    .filter-search-row .button { width: auto; }
    .filter-actions .button { width: auto; }
    .page-heading, .dashboard-heading, .admin-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .section-title { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .role-definition-grid { grid-template-columns: repeat(3, 1fr); }
    .role-member-grid { grid-template-columns: 1fr 1fr; }
    .role-member-detail-layout { grid-template-columns: minmax(240px, .7fr) minmax(420px, 1.3fr); }
    .money-transfer-card { padding: 24px; }
    .money-search-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .money-search-form .button { width: auto; }
    .money-recipient-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .money-recipient-row > .button { grid-column: auto; width: auto; }
    .money-amount-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .money-amount-form .button { width: auto; }
    .money-history-item { padding: 16px 18px; }
    .challenge-current-card { grid-template-columns: 105px minmax(0, 1fr); padding: 22px; }
    .challenge-reference { width: 105px; height: 105px; }
    .challenge-archive-grid { grid-template-columns: 1fr 1fr; }
    .ranking-card { grid-template-columns: 44px 54px minmax(220px, 1fr) 100px 150px; padding: 14px 18px; }
    .ranking-card.ranking-no-photo { grid-template-columns: 44px minmax(220px, 1fr) 100px 150px; }
    .ranking-card > img, .ranking-avatar { width: 54px; height: 54px; }
    .ranking-stat, .ranking-card .ranking-member + .ranking-stat, .ranking-card .ranking-points,
    .general-ranking-list .ranking-card .ranking-member + .ranking-stat,
    .general-ranking-list .ranking-card .ranking-points { grid-column: auto; padding: 0; border: 0; }
    .general-ranking-list .ranking-card { grid-template-columns: 44px 54px minmax(220px, 1fr) 85px 95px 150px; }
    .general-ranking-list .ranking-card.ranking-no-photo { grid-template-columns: 44px minmax(220px, 1fr) 85px 95px 150px; }
    .general-ranking-list .ranking-card .ranking-stat,
    .general-ranking-list .ranking-card .ranking-member + .ranking-stat,
    .general-ranking-list .ranking-card .ranking-points { display: block; grid-column: auto; padding: 0; }
    .challenge-admin-current { grid-template-columns: 105px minmax(0, 1fr) 280px; align-items: center; }
    .challenge-admin-counts { grid-column: auto; }
    .challenge-close-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .facebook-export-card > .button { width: auto; justify-self: start; }
}

@media (min-width: 960px) {
    .app-body { padding-bottom: 0; }
    .app-topbar { min-height: 76px; gap: 24px; }
    .brand { font-size: 1.2rem; }
    .brand-logo { width: 48px; height: 48px; }
    .desktop-nav { display: flex; margin-left: auto; align-items: center; gap: 24px; }
    .desktop-nav a { color: #334860; font-weight: 750; text-decoration: none; }
    .desktop-nav a:hover { color: var(--blue-700); }
    .logout-button { min-height: 42px; font-size: .84rem; }
    .mobile-tabbar { display: none; }
    .footer-content { min-height: 68px; }
    .profile-layout { grid-template-columns: 310px 1fr; }
    .summary-grid { grid-template-columns: 1.2fr .8fr 1fr; }
    .balance-card { grid-column: auto; }
    .module-grid, .admin-module-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-grid { grid-template-columns: repeat(4, 1fr); }
    .challenge-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1120px) {
    .role-member-grid { grid-template-columns: repeat(3, 1fr); }
    .user-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); box-shadow: none; }
    .user-table { display: table; min-width: 1120px; border-collapse: collapse; font-size: .86rem; }
    .user-table thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
    .user-table tbody { display: table-row-group; }
    .user-table tr { display: table-row; width: auto; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
    .user-table th { padding: 13px 14px; color: #435771; background: var(--blue-50); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
    .user-table td { display: table-cell; width: auto; padding: 14px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .84rem; }
    .user-table td::before { display: none; }
    .user-table tbody tr:last-child td { border-bottom: 0; }
    .user-identity { min-width: 205px; }
    .user-actions { min-width: 195px; }
    .status-actions { display: flex; flex-wrap: wrap; }
    .status-actions .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Challenge Intello — interface mobile prioritaire */
.intello-heading { align-items: center; }
.intello-mark { display: grid; width: 72px; height: 72px; flex: 0 0 auto; place-items: center; color: #523700; background: linear-gradient(145deg, #ffeaa2, #f5bd27); border: 1px solid #e3ae21; border-radius: 22px; box-shadow: 0 12px 28px rgba(183, 126, 0, .2); font-size: 1.8rem; font-weight: 950; }
.intello-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 24px; }
.intello-links a { min-height: 46px; padding: 12px; color: var(--blue-800); background: white; border: 1px solid var(--line); border-radius: 13px; text-align: center; text-decoration: none; font-size: .84rem; font-weight: 850; }
.intello-today { display: grid; gap: 18px; overflow: hidden; border-color: #eed187; }
.intello-reference { display: grid; width: 82px; height: 82px; align-content: center; justify-self: center; color: #513600; background: #fff2bf; border: 1px solid #efd57c; border-radius: 50%; text-align: center; }
.intello-reference small { font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.intello-reference strong { font-size: 1.25rem; }
.intello-today-body { min-width: 0; }
.intello-card-topline { display: flex; margin-bottom: 12px; align-items: center; justify-content: space-between; gap: 12px; color: #795a0b; font-size: .78rem; font-weight: 800; }
.intello-today h2 { margin: 0 0 6px; }
.intello-today p { margin: 0 0 14px; color: var(--muted); }
.intello-schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.intello-schedule div { padding: 10px 5px; background: #fff9e8; border-radius: 10px; text-align: center; }
.intello-schedule dt { color: #896d28; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.intello-schedule dd { margin: 3px 0 0; color: #3c2b00; font-size: .82rem; font-weight: 900; }
.consent-check { display: flex; padding: 12px; align-items: flex-start; gap: 10px; background: #fff9e8; border: 1px solid #f0dd9f; border-radius: 12px; font-size: .82rem; }
.consent-check input { width: 20px; height: 20px; flex: 0 0 auto; }
.intello-start-form { display: grid; gap: 12px; }
.button-gold { color: #392700; background: linear-gradient(135deg, #ffd85c, #efb313); border-color: #dfa30a; box-shadow: 0 9px 22px rgba(191, 133, 0, .2); }
.button-gold:hover { background: #eaaa05; }
.attempt-counter { color: #795a0b; font-size: .78rem; font-weight: 850; }
.intello-list { padding: 4px 16px; }
.intello-list article { display: grid; grid-template-columns: 72px 1fr; padding: 14px 0; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.intello-list article:last-child { border-bottom: 0; }
.intello-list time { color: var(--blue-800); font-size: .8rem; font-weight: 900; }
.intello-list small, .intello-admin-table small { display: block; margin-top: 3px; color: var(--muted); }
.intello-empty { padding: 34px 20px; text-align: center; }
.intello-empty-icon { display: grid; width: 64px; height: 64px; margin: auto; place-items: center; color: #755200; background: #fff2bf; border-radius: 50%; font-size: 2rem; font-weight: 900; }
.intello-history-grid { display: grid; gap: 12px; }
.intello-history-card { display: grid; color: inherit; text-decoration: none; }
.intello-history-card > span { color: #755500; font-size: .76rem; font-weight: 850; }
.intello-history-card > strong { margin: 5px 0; color: var(--blue-900); font-size: 1.8rem; }
.intello-history-card > small { color: var(--muted); }
.intello-history-card > em { margin-top: 8px; color: #18744a; font-size: .72rem; font-style: normal; font-weight: 800; }
.intello-play { max-width: 780px; margin: auto; }
.intello-play-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.intello-play-head h1 { margin: 3px 0 0; font-size: 1.35rem; }
.intello-timer { min-width: 92px; padding: 10px; color: #4c3500; background: #fff0ae; border-radius: 13px; text-align: center; }
.intello-timer span { display: block; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.intello-timer strong { font-size: 1.3rem; }
.intello-progress { height: 8px; margin: 18px 0; overflow: hidden; background: #e8edf4; border-radius: 99px; }
.intello-progress span { display: block; height: 100%; background: linear-gradient(90deg, #efb313, #ffdb60); border-radius: inherit; }
.intello-progress .progress-1 { width: 10%; }.intello-progress .progress-2 { width: 20%; }.intello-progress .progress-3 { width: 30%; }.intello-progress .progress-4 { width: 40%; }.intello-progress .progress-5 { width: 50%; }.intello-progress .progress-6 { width: 60%; }.intello-progress .progress-7 { width: 70%; }.intello-progress .progress-8 { width: 80%; }.intello-progress .progress-9 { width: 90%; }.intello-progress .progress-10 { width: 100%; }
.intello-question-card { border-color: #eed187; }
.question-number { display: inline-block; margin-bottom: 12px; color: #755500; font-size: .74rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.intello-question-card h2 { margin: 0 0 22px; font-size: 1.2rem; line-height: 1.5; }
.intello-answer-form fieldset { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 18px; padding: 0; gap: 8px; border: 0; }
.intello-answer-form legend { margin-bottom: 9px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.intello-answer-form label { position: relative; }
.intello-answer-form input { position: absolute; opacity: 0; }
.intello-answer-form label span { display: grid; min-height: 52px; place-items: center; color: #4c5562; background: #f8fafc; border: 2px solid #dfe7f0; border-radius: 13px; font-weight: 900; }
.intello-answer-form input:checked + span { color: #513700; background: #fff0ae; border-color: #e5b723; }
.intello-answer-form label:last-child { grid-column: 1 / -1; }
.intello-warning { margin: 16px 0; color: #875d00; text-align: center; font-size: .75rem; font-weight: 750; }
.intello-camera { display: grid; min-height: calc(100svh - 230px); place-items: center; }
.camera-auto-progress { display: grid; width: min(72vw, 260px); aspect-ratio: 1; place-items: center; }
.camera-auto-progress[hidden] { display: none; }
.camera-auto-progress img { width: 100%; height: 100%; object-fit: contain; }
.camera-auto-progress .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.camera-auto-source { position: fixed; left: -2px; bottom: -2px; width: 1px; height: 1px; opacity: .01; pointer-events: none; }
.camera-auto-error { width: min(100%, 520px); margin: auto; text-align: center; }
.intello-review-card { display: grid; gap: 18px; }
.table-scroll { overflow-x: auto; }
.intello-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .82rem; }
.intello-table th { padding: 12px; color: #435771; background: var(--blue-50); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.intello-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.intello-table tbody tr:last-child td { border-bottom: 0; }
.answer-correct td { background: #f1fbf5; }.answer-wrong td { background: #fff6f5; }
.intello-result-grid { display: grid; gap: 10px; }
.score-card { color: #4d3500; background: linear-gradient(145deg, #fff8df, #fff0ad); border-color: #eac65a; text-align: center; }
.score-card > strong { display: block; font-size: 3.4rem; line-height: 1; }.score-card > strong span { font-size: 1.2rem; }.score-card p { margin: 8px 0 0; font-weight: 900; }
.result-stat { display: grid; text-align: center; }.result-stat strong { margin: 5px 0; color: var(--blue-900); font-size: 1.7rem; }.result-stat span, .result-stat small { color: var(--muted); }
.intello-capture-grid { display: grid; gap: 12px; }
.intello-capture-grid figure { margin: 0; padding: 10px; }.intello-capture-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }.intello-capture-grid figcaption { padding: 9px 4px 2px; color: var(--muted); font-size: .78rem; }
.sanction-member-card { border-color: #efb1aa; }.sanction-member-card h2 { color: #9d2d25; }
.rank-medal { display: grid; width: 30px; height: 30px; place-items: center; background: #edf2f7; border-radius: 50%; font-weight: 900; }.rank-1 { color: #614300; background: #ffdf72; }.rank-2 { background: #dce5ef; }.rank-3 { color: #673b1d; background: #e9bd9a; }
.intello-admin-heading { align-items: center; }
.intello-admin-cards, .intello-question-editor { display: grid; gap: 12px; }
.appeal-card > span { color: #7d5b00; font-size: .78rem; font-weight: 850; }.appeal-card h3 { margin: 5px 0; }.appeal-card p { color: var(--muted); }
.intello-create-form > .button { width: 100%; }
.intello-question-editor article { min-width: 0; }
.intello-question-editor textarea { resize: vertical; }
.intello-admin-actions { display: grid; gap: 15px; }.intello-admin-actions > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-captures figure { display: grid; gap: 8px; }.admin-captures figcaption { display: flex; justify-content: space-between; gap: 8px; }.capture-evidence { border: 2px solid #d2493e; }.capture-evidence figcaption span { color: #b52d25; font-weight: 900; }
.appeal-decision { border-color: #e8c45d; }
@media (min-width: 720px) {
    .intello-today { grid-template-columns: 100px 1fr; align-items: start; padding: 22px; }
    .intello-reference { width: 94px; height: 94px; }
    .intello-history-grid, .intello-result-grid, .intello-capture-grid, .intello-admin-cards, .intello-question-editor { grid-template-columns: repeat(2, 1fr); }
    .intello-result-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .intello-answer-form fieldset { grid-template-columns: repeat(5, 1fr); }
    .intello-answer-form label:last-child { grid-column: auto; }
    .intello-admin-actions { grid-template-columns: 1fr auto; align-items: center; }
    .intello-create-form > .button { width: auto; justify-self: end; }
}
@media (min-width: 1040px) {
    .intello-question-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intello-capture-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Jeux — catalogue et Pile ou face, conçus d’abord pour téléphone */
.games-heading, .coin-flip-heading { align-items: flex-start; }
.games-catalog { display: grid; gap: 14px; }
.game-catalog-card { display: grid; position: relative; padding: 20px 17px; overflow: hidden; gap: 18px; color: inherit; text-decoration: none; border-color: #ecd47d; }
.game-catalog-card::after { content: ""; position: absolute; right: -45px; bottom: -60px; width: 170px; height: 170px; background: rgba(246, 190, 28, .12); border-radius: 50%; pointer-events: none; }
.game-catalog-card h2 { margin: 8px 0 5px; }
.game-catalog-card p { margin: 0; color: var(--muted); }
.game-open { position: relative; z-index: 1; color: #7a5400; }
.coin-pair { display: flex; align-items: center; justify-content: center; }
.coin-pair img { width: 92px; height: 92px; object-fit: cover; background: white; border: 4px solid white; border-radius: 50%; box-shadow: 0 10px 24px rgba(56, 38, 0, .18); }
.coin-pair img + img { margin-left: -22px; }
.coin-pair-large img { width: 104px; height: 104px; }
.coin-flip-hero { display: grid; padding: 20px; align-items: center; gap: 18px; color: #493300; background: linear-gradient(145deg, #fff9e5, #ffedaa); border-color: #ecc95c; text-align: center; }
.coin-flip-hero > div:last-child span, .coin-flip-hero > div:last-child strong { display: block; }
.coin-flip-hero > div:last-child span { color: #876a21; font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.coin-flip-hero > div:last-child strong { font-size: 2rem; }
.coin-flip-hero small { font-size: .78rem; }
.coin-menu-grid { display: grid; gap: 11px; }
.coin-menu-card { display: flex; min-height: 105px; padding: 17px; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.coin-menu-card > span { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: #755200; background: #fff0b5; border-radius: 14px; font-size: 1.3rem; font-weight: 900; }
.coin-menu-card h2 { font-size: 1.05rem; }
.coin-menu-card p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.coin-menu-primary { color: #fff5ce; background: linear-gradient(135deg, #9b6c00, #e9ad13); border-color: transparent; }
.coin-menu-primary h2 { color: white; }
.coin-menu-primary p { color: #fff6d7; }
.coin-menu-primary > span { color: #684800; background: white; }
.coin-menu-disabled { color: #70521a; background: #f6f0e3; border-style: dashed; }
.coin-menu-disabled > span { color: #8a6110; background: white; }
.coin-rules { padding: 19px; border-color: #eed88e; }
.coin-rules h2 { font-size: 1.15rem; }
.coin-rules p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.coin-action-card { max-width: 660px; margin: auto; padding: 18px 15px; }
.coin-wallet-line { display: flex; margin: -2px 0 20px; padding: 13px 14px; align-items: center; justify-content: space-between; gap: 12px; color: #775300; background: #fff5ce; border-radius: 12px; font-size: .82rem; }
.coin-wallet-line strong { color: #3f2c00; font-size: .9rem; }
.coin-choice-fieldset { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 18px; padding: 0; gap: 10px; border: 0; }
.coin-choice-fieldset legend { grid-column: 1 / -1; margin-bottom: 10px; color: #263a56; font-size: .87rem; font-weight: 800; }
.coin-choice-fieldset label { min-width: 0; cursor: pointer; }
.coin-choice-fieldset input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.coin-choice-fieldset label > span { display: grid; padding: 12px 8px; place-items: center; gap: 7px; background: #f8fafc; border: 2px solid #dce6f2; border-radius: 15px; transition: border-color .16s, background .16s, transform .16s; }
.coin-choice-fieldset img { width: min(100%, 112px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.coin-choice-fieldset input:checked + span { color: #503700; background: #fff7d8; border-color: #e0aa13; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(143, 97, 0, .14); }
.coin-choice-fieldset input:focus-visible + span { outline: 3px solid rgba(11,110,232,.3); outline-offset: 2px; }
.coin-stake-summary { margin-bottom: 20px; padding: 17px; color: #624600; background: #fff5ce; border-radius: 13px; text-align: center; }
.coin-stake-summary span, .coin-stake-summary strong, .coin-stake-summary small { display: block; }
.coin-stake-summary span { font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.coin-stake-summary strong { margin: 4px 0; font-size: 1.8rem; }
.coin-stake-summary small { color: #80651f; }
.coin-challenge-list { display: grid; gap: 11px; }
.coin-challenge-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); padding: 14px; align-items: center; gap: 12px; }
.coin-challenge-row > div:nth-child(2) strong, .coin-challenge-row > div:nth-child(2) span, .coin-challenge-row > div:nth-child(2) small { display: block; }
.coin-challenge-row > div:nth-child(2) span { margin-top: 2px; color: #755300; font-size: .83rem; font-weight: 850; }
.coin-challenge-row > div:nth-child(2) small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.coin-challenge-row .button { grid-column: 1 / -1; width: 100%; }
.coin-challenge-row .button[aria-disabled="true"] { color: #7a6d50; background: #eee9dd; border-color: #dfd8c8; box-shadow: none; pointer-events: none; }
.coin-reference { display: grid; width: 58px; height: 58px; place-items: center; align-content: center; color: #604300; background: #fff0b5; border-radius: 50%; }
.coin-reference small { font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.coin-reference strong { font-size: .95rem; }
.coin-empty { padding: 34px 18px; }
.coin-empty > span { display: grid; width: 64px; height: 64px; margin: 0 auto 12px; place-items: center; color: #775300; background: #fff0b5; border-radius: 50%; font-size: 1.8rem; }
.coin-empty h2 { font-size: 1.25rem; }
.coin-empty .button { margin-top: 10px; }
.coin-history-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; padding: 4px; gap: 4px; background: #e9eff7; border-radius: 13px; }
.coin-history-tabs a { min-height: 43px; padding: 10px; color: #52647c; border-radius: 10px; text-align: center; text-decoration: none; font-size: .8rem; font-weight: 850; }
.coin-history-tabs a.is-active { color: #594000; background: #fff2bd; box-shadow: 0 3px 10px rgba(42, 35, 12, .08); }
.coin-history-row { overflow: hidden; }
.coin-history-row > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 15px; gap: 10px; color: inherit; text-decoration: none; }
.coin-history-row > a > div:first-child > strong, .coin-history-row > a > div:first-child > small { display: block; }
.coin-history-row > a > div:first-child > strong { margin-top: 8px; }
.coin-history-row > a > div:first-child > small { margin-top: 2px; color: var(--muted); }
.coin-history-result { text-align: right; }
.coin-history-result > strong, .coin-history-result > small, .coin-history-result > em { display: block; }
.coin-history-result > strong { color: var(--blue-950); font-size: 1.05rem; }
.coin-history-result > small { color: var(--muted); font-size: .67rem; }
.coin-history-result > em { margin-top: 7px; font-size: .73rem; font-style: normal; font-weight: 900; }
.coin-history-result .is-win { color: var(--green); }
.coin-history-result .is-loss { color: var(--red); }
.coin-history-row > form { padding: 10px 15px; background: #fff8e7; border-top: 1px solid #f1dfaf; text-align: right; }
.status-open { color: #765300; background: #fff0b5; }
.status-launcher_won, .status-challenger_won { color: #0d633b; background: #e4f7ed; }
.status-cancelled { color: #5f4a32; background: #eee8e0; }
.coin-result-card { max-width: 680px; margin: auto; padding: 25px 17px; border-color: #ecd47d; text-align: center; }
.coin-result-card.is-win { background: linear-gradient(145deg, #f2fff7, #ddf8e9); border-color: #8fd3af; }
.coin-result-card.is-loss { background: linear-gradient(145deg, #fff8f7, #ffebe8); border-color: #edaca5; }
.coin-result-icon { display: grid; width: 70px; height: 70px; margin: 0 auto 15px; place-items: center; color: #755100; background: #fff0b5; border-radius: 50%; font-size: 2rem; font-weight: 950; }
.coin-result-card.is-win .coin-result-icon { color: white; background: var(--green); }
.coin-result-card.is-loss .coin-result-icon { color: white; background: var(--red); }
.coin-result-card h2 { font-size: 1.55rem; }
.coin-result-card > p { color: var(--muted); }
.coin-result-card > form { margin-top: 18px; }
.coin-reveal-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; gap: 9px; }
.coin-reveal-grid > div { display: grid; min-width: 0; padding: 12px 7px; place-items: center; gap: 6px; background: rgba(255,255,255,.8); border: 1px solid rgba(120, 110, 80, .17); border-radius: 14px; }
.coin-reveal-grid small { min-height: 34px; color: var(--muted); font-size: .67rem; overflow-wrap: anywhere; }
.coin-reveal-grid img { width: min(100%, 105px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

@media (min-width: 620px) {
    .game-catalog-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
    .coin-flip-hero { grid-template-columns: auto 1fr; text-align: left; }
    .coin-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coin-challenge-row { grid-template-columns: 60px minmax(0, 1fr) auto; }
    .coin-challenge-row .button { grid-column: auto; width: auto; }
    .coin-action-card { padding: 24px; }
}

/* Paramètres système — accès Super administrateur */
.setting-card { padding: 18px 15px; }
.setting-card-head { display: flex; margin-bottom: 17px; align-items: flex-start; justify-content: space-between; gap: 12px; }
.setting-card-head h2 { font-size: 1.25rem; }
.setting-current-user { display: flex; padding: 15px; align-items: center; gap: 12px; background: #eef8f3; border: 1px solid #b9dfcc; border-radius: 14px; }
.setting-current-user > div { min-width: 0; }
.setting-current-user small, .setting-current-user strong, .setting-current-user span { display: block; overflow-wrap: anywhere; }
.setting-current-user small { color: #597267; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.setting-current-user strong { margin: 3px 0; color: #0d633b; font-size: 1.08rem; }
.setting-current-user span { color: #546b62; font-size: .78rem; }
.setting-explanation { margin: 16px 0; padding: 14px; color: #624700; background: #fff7da; border: 1px solid #eed78a; border-radius: 12px; }
.setting-explanation p { margin: 4px 0 0; color: #78622d; font-size: .82rem; }
.settings-user-search { display: grid; margin-top: 22px; gap: 10px; }
.settings-user-search label { display: block; margin-bottom: 6px; }
.settings-user-search .button { width: 100%; }
.settings-search-results { margin-top: 20px; }
.settings-search-results > h3 { margin-bottom: 10px; }
.settings-candidate { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 13px 0; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.settings-candidate:last-child { border-bottom: 0; }
.settings-candidate > div { min-width: 0; }
.settings-candidate > div strong, .settings-candidate > div span, .settings-candidate > div small { display: block; overflow-wrap: anywhere; }
.settings-candidate > div span { color: #41546d; font-size: .8rem; }
.settings-candidate > div small { color: var(--muted); font-size: .72rem; }
.settings-candidate > form, .settings-candidate > .status-badge { grid-column: 1 / -1; }
.settings-candidate > form .button { width: 100%; }
.settings-candidate.is-selected { margin-inline: -8px; padding-inline: 8px; background: #f1fbf6; border-radius: 12px; }
@media (min-width: 680px) {
    .setting-card { padding: 24px; }
    .settings-user-search { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .settings-user-search .button { width: auto; }
    .settings-candidate { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .settings-candidate > form, .settings-candidate > .status-badge { grid-column: auto; }
    .settings-candidate > form .button { width: auto; }
}

/* Appels de fonds — Solidarité, Sponsor et fêtes */
.honorary-badge, .honorary-banner, .honorary-inline { color: #6b4700; background: #fff0b5; border-color: #e2b83e; }
.honorary-banner { display: inline-flex; padding: 8px 12px; align-self: flex-start; border: 1px solid #e2b83e; border-radius: 999px; font-size: .78rem; font-weight: 900; }
.honorary-inline { padding: 2px 7px; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.fundraising-heading { background: linear-gradient(135deg, #6a261f, #b64b35 55%, #d09b2b); }
.fundraising-empty { padding: 42px 20px; text-align: center; }
.fundraising-campaign-list { display: grid; gap: 10px; }
.fundraising-campaign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 15px; align-items: center; gap: 8px 12px; color: inherit; text-decoration: none; }
.fundraising-campaign-row.is-selected, .admin-campaign-card.is-selected { border-color: #cf9b22; box-shadow: 0 10px 28px rgba(142, 92, 0, .14); }
.fundraising-campaign-row > div { grid-column: 1 / -1; }
.fundraising-campaign-row strong, .fundraising-campaign-row small { display: block; }
.fundraising-campaign-row small { margin-top: 3px; color: var(--muted); }
.fundraising-campaign-row .campaign-relevance { margin: 0; text-align: right; }
.fundraising-type { display: inline-flex; width: fit-content; padding: 4px 8px; color: #6a4500; background: #fff0b5; border-radius: 999px; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.fundraising-type.type-solidarity { color: #8b2d23; background: #ffe5e0; }
.fundraising-detail { display: grid; gap: 12px; }
.fundraising-cover { width: 100%; max-height: 340px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.fundraising-summary, .fundraising-action-card, .fundraising-payment-card, .campaign-admin-summary, .campaign-form-card { padding: 18px 15px; }
.fundraising-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fundraising-summary-head h2 { margin-top: 4px; font-size: clamp(1.25rem, 5vw, 1.85rem); }
.campaign-reference { display: grid; min-width: 50px; height: 50px; place-items: center; color: #6b4900; background: #fff1ba; border-radius: 50%; font-weight: 900; }
.fundraising-summary > p { color: #495c72; line-height: 1.65; }
.fundraising-progress { margin: 18px 0; padding: 15px; color: #644600; background: #fff8de; border: 1px solid #eedb99; border-radius: 14px; }
.fundraising-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; }
.fundraising-progress > div:first-child span { color: #806a35; }
.progress-track { height: 12px; margin: 10px 0 7px; overflow: hidden; background: #e9ddb9; border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #b97711, #f0bf37); border-radius: inherit; }
.fundraising-progress small { color: #7a6530; }
.fundraising-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 9px; }
.fundraising-facts div { padding: 11px; background: #f6f9fc; border: 1px solid #e2eaf3; border-radius: 12px; }
.fundraising-facts dt { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.fundraising-facts dd { margin: 4px 0 0; color: var(--blue-950); font-size: .83rem; font-weight: 850; }
.payment-instructions { margin: 14px 0 20px; padding: 15px; color: #5f4509; background: #fff7d8; border: 1px solid #ebd17d; border-radius: 13px; }
.payment-instructions p { margin: 7px 0; white-space: normal; }
.payment-instructions small { color: #8a6c25; }
.fundraising-history-grid { display: grid; gap: 10px; }
.fundraising-history-grid article { display: grid; padding: 14px; gap: 7px; }
.fundraising-history-grid strong { font-size: 1.15rem; }
.fundraising-history-grid small { color: var(--muted); }
.donor-list { overflow: hidden; }
.donor-list article { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; padding: 13px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.donor-list article:last-child { border-bottom: 0; }
.donor-list strong, .donor-list small { display: block; }
.donor-list small { color: var(--muted); }
.donor-list b { color: #0d633b; font-size: .86rem; }
.heading-actions, .campaign-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.heading-actions { align-items: center; }
.campaign-admin-actions { margin-top: 18px; }
.campaign-admin-actions form { display: inline-flex; }
.admin-campaign-grid { display: grid; gap: 10px; }
.admin-campaign-card { display: grid; padding: 15px; gap: 7px; color: inherit; text-decoration: none; }
.admin-campaign-card > div { display: flex; justify-content: space-between; gap: 8px; }
.admin-campaign-card > small { color: var(--muted); }
.compact-metrics { margin-top: 15px; }
.campaign-contribution-table-wrap { overflow-x: auto; }
.campaign-contribution-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.campaign-contribution-table th, .campaign-contribution-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.campaign-contribution-table th { color: #42556d; background: #f5f8fc; font-size: .72rem; text-transform: uppercase; }
.campaign-contribution-table td strong, .campaign-contribution-table td small { display: block; }
.campaign-contribution-table td small { margin-top: 4px; color: var(--muted); }
.review-contribution-form { min-width: 220px; }
.review-contribution-form textarea { min-height: 58px; margin-bottom: 7px; }
.review-contribution-form > div { display: flex; gap: 6px; }
.status-draft, .status-pledged { color: #765300; background: #fff0b5; }
.status-proof_submitted { color: #0757a7; background: #e1f0ff; }
.status-paid { color: #0d633b; background: #e4f7ed; }
.status-rejected { color: #982d24; background: #ffe5e1; }

@media (min-width: 680px) {
    .fundraising-campaign-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .fundraising-campaign-row > div { grid-column: auto; }
    .fundraising-detail { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); align-items: stretch; }
    .fundraising-cover { height: 100%; max-height: none; }
    .fundraising-summary, .fundraising-action-card, .fundraising-payment-card, .campaign-admin-summary, .campaign-form-card { padding: 24px; }
    .fundraising-history-grid, .admin-campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
    .admin-campaign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
