/* ==========================================================================
   Ivoire Feeling — portail d'administration
   Mise en page reprise de l'espace responsables PDCI-RDA (sidebar claire, filets fins,
   tableau de bord à jauges et tuiles), couleurs de la charte Côte d'Ivoire Feeling (web/DESIGN.md).
   ========================================================================== */
:root {
  /* Marque CIF */
  --brand: #c2540e;        /* Orange profond : fonds avec texte blanc (AA) */
  --brand-dark: #b3480b;   /* Orange encre : texte orange sur blanc (AA) */
  --brand-deep: #8a3708;   /* survol des boutons */
  --brand-soft: #fdf1e7;
  --brand-line: #f6d6bf;
  --accent: #009a44;       /* Vert CIF */
  --accent-dark: #007a36;  /* Vert encre */
  --accent-soft: #e7f6ed;
  --accent-line: #c4e8d3;
  /* Neutres et statuts */
  --bg: #f3f4f6; --card: #fff; --text: #1f2937; --muted: #4b5563; --line: #e2e8f0;
  --ok: #15803d; --warn: #b45309; --danger: #b91c1c; --info: #1d4ed8;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Plus Jakarta Sans", var(--font);
}

/* ---------- Coque ---------- */
.if-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: #fff; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
.if-shell *, .if-shell *::before, .if-shell *::after { box-sizing: border-box; }
.if-shell .muted { color: var(--muted); }
.if-shell .tabular { font-variant-numeric: tabular-nums; }
.if-shell :focus-visible { outline: 3px solid rgba(194, 84, 14, .3); outline-offset: 2px; }
.admin-skip { position: fixed; left: 1rem; top: -60px; z-index: 100; background: #fff; padding: .75rem 1rem; border-radius: 8px; color: var(--brand-dark); }
.admin-skip:focus { top: .75rem; }

/* Barre latérale */
.if-sidebar { background: #fcfbfa; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.if-brand { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem .6rem; }
.if-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: .8rem; flex: none; box-shadow: inset 0 -3px 0 var(--accent); }
.if-brand-text { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.if-brand strong { font-family: var(--font-title); font-size: .95rem; white-space: nowrap; }
.if-brand-tag { font-size: .68rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: .08rem .5rem; white-space: nowrap; }
.if-side-search { position: relative; margin: .4rem .75rem .5rem; }
.if-side-search .ico { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; }
.if-side-search input { width: 100%; min-height: 40px; padding: .35rem .6rem .35rem 1.9rem; font: inherit; font-size: .85rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.if-side-search input:focus { outline: 3px solid rgba(194, 84, 14, .22); border-color: var(--brand); }
.if-sidebar nav { padding: .25rem .6rem; display: flex; flex-direction: column; gap: 1px; flex: 1 0 auto; }
.if-sidebar nav a { color: #374151; text-decoration: none; padding: .45rem .6rem; border-radius: 6px; display: flex; gap: .6rem; align-items: center; min-height: 40px; font-size: .88rem; }
.if-sidebar nav a:hover { background: #f4f1ee; color: var(--text); }
.if-sidebar nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand); }
.if-nav-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.if-nav-pending { margin-left: auto; color: var(--brand-dark); background: var(--brand-soft); padding: .1rem .35rem; border-radius: .5rem; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.if-nav-section { text-transform: uppercase; font-size: .68rem; letter-spacing: .1em; color: var(--muted); margin: .8rem .6rem .2rem; }
.if-nav-empty { font-size: .85rem; color: var(--muted); padding: .5rem .6rem; }
.if-sidebar-footer { flex: none; display: grid; gap: .75rem; padding: .75rem; }
.if-side-note { display: grid; gap: .3rem; padding: .7rem .8rem; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 8px; font-size: .78rem; }
.if-side-note strong { color: var(--accent-dark); font-size: .85rem; }
.if-side-note p { margin: 0; color: var(--muted); line-height: 1.45; }
.if-side-user { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .55rem; padding: .6rem .25rem .15rem; border-top: 1px solid var(--line); }
.if-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; margin-top: .3rem; }
.if-side-user-meta { display: grid; gap: .15rem; padding-top: .3rem; overflow-wrap: anywhere; line-height: 1.4; }
.if-side-user-meta strong { font-size: .88rem; }
.if-side-user-meta span { color: var(--muted); font-size: .78rem; }
.if-icon-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; font: inherit; flex: none; }
.if-icon-btn:hover { color: var(--brand-dark); border-color: var(--brand-line); }
.if-menu-toggle { display: none; }
.if-brand .if-menu-toggle { margin-left: auto; }
.if-menu-backdrop { display: none; }

/* Zone principale */
.if-main { min-width: 0; display: flex; flex-direction: column; background: #f8f8f7; }
.if-topbar { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; height: 52px; position: sticky; top: 0; z-index: 5; }
.if-scope { flex: 1; font-size: .88rem; display: flex; align-items: center; gap: .45rem; min-width: 0; }
.if-scope strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.if-scope-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.if-topbar-actions { display: flex; align-items: center; gap: 1.1rem; }
.if-top-date { font-size: .84rem; text-transform: capitalize; white-space: nowrap; }
.if-top-link { background: none; border: 0; font: inherit; font-size: .88rem; color: var(--text); cursor: pointer; padding: .3rem 0; }
.if-top-link:hover { color: var(--brand-dark); }
.if-content { padding: 1.5rem 1.75rem 3rem; width: 100%; outline: none; }

/* ---------- Tableau de bord (vue d'ensemble) ---------- */
.if-overview-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.if-overview-head h1 { font-family: var(--font-title); color: var(--brand-dark); font-size: 1.55rem; line-height: 1.2; font-weight: 700; margin: 0; }
.if-overview-head h1:focus { outline: none; }
.if-overview-head .muted { font-size: .88rem; }
.if-head-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-self: center; }

/* Formulaires et tableaux simples (modules sans grille) */
.if-label { display: grid; gap: .3rem; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.if-input { width: 100%; min-height: 44px; font: inherit; font-weight: 400; padding: .55rem .75rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--text); }
.if-input:focus { outline: 3px solid rgba(194, 84, 14, .22); border-color: var(--brand); }
.if-inline { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.if-filters { align-items: flex-end; }
.if-filters .if-label { margin: 0; }
.if-hint { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.if-form-panel { max-width: 560px; }
.if-alert-ok { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-dark); font-size: .9rem; }
.if-people-list li { grid-template-columns: 34px minmax(0, 1fr) auto; }
.if-table-wrap { overflow-x: auto; }
.if-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.if-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf9f8; padding: .65rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.if-table td { padding: .7rem .9rem; border-bottom: 1px solid #f1eeeb; vertical-align: top; }
.if-table td .crm-cell-sub { display: block; }
.if-table tr:hover td { background: #fdfaf7; }
.if-toolbar { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.5rem; }
.if-searchbar { position: relative; flex: 1; }
.if-searchbar .ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.if-searchbar input { width: 100%; min-height: 44px; font: inherit; padding: .55rem 2.6rem .55rem 2.2rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.if-searchbar input:focus { outline: 3px solid rgba(194, 84, 14, .22); border-color: var(--brand); }
form.if-searchbar { display: flex; align-items: center; gap: .5rem; }
form.if-searchbar input { min-width: 0; padding-right: .6rem; }
.if-overview { display: grid; grid-template-columns: clamp(280px, 24vw, 400px) minmax(0, 1fr); gap: clamp(1rem, 1.5vw, 1.75rem); align-items: start; }
.if-col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.if-section-title { color: var(--brand-dark); font-family: var(--font); font-size: .9rem; font-weight: 600; margin: 0 0 .6rem; }
.if-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(60, 30, 10, .06); }
.if-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.if-panel-body { padding: 1rem; }
.if-pill { background: var(--brand); color: #fff; border-radius: 6px; padding: .15rem .55rem; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.if-metric-list { list-style: none; margin: 0; padding: .4rem 1rem .6rem; }
.if-metric-list li { display: grid; grid-template-columns: 16px 1fr auto; gap: .65rem; align-items: center; padding: .45rem 0; font-size: .88rem; }
.if-metric-list li + li { border-top: 1px solid #f1eeeb; }
.if-metric-list li .muted { font-size: .8rem; }
.if-ring { display: block; }
.if-ring-track { fill: none; stroke: var(--brand-soft); stroke-width: 3; }
.if-ring-fill { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.if-ring-green .if-ring-track { stroke: var(--accent-soft); } .if-ring-green .if-ring-fill { stroke: var(--accent); }
.if-ring-warn .if-ring-track { stroke: #fdecc8; } .if-ring-warn .if-ring-fill { stroke: var(--warn); }
.if-ring-danger .if-ring-track { stroke: #fde2e2; } .if-ring-danger .if-ring-fill { stroke: var(--danger); }
.if-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: 1.6rem 1.25rem; }
.if-empty-state p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 300px; }
.if-empty-ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-dark); font-weight: 700; }
.if-empty-ico.warn { color: var(--warn); border-color: #fde68a; background: #fffbeb; }
.if-event-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.if-event-row + .if-event-row { border-top: 1px solid #f1eeeb; }
.if-event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 44px; flex: none; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); }
.if-event-date strong { font-family: var(--font-title); font-size: 1rem; line-height: 1.1; }
.if-event-date span { font-size: .62rem; text-transform: uppercase; }
.if-event-info { flex: 1; min-width: 0; }
.if-event-info strong { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.if-event-info p { margin: .1rem 0 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.if-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.if-tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(60, 30, 10, .06); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; color: inherit; text-decoration: none; text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s; }
button.if-tile { cursor: pointer; }
.if-overview :is(a, button).if-tile .if-tile-link { text-decoration: underline; text-underline-offset: .18em; }
.if-overview :is(a, button).if-tile:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
:is(a, button).if-tile:hover { border-color: var(--brand-line); box-shadow: 0 2px 8px rgba(194, 84, 14, .1); }
.if-tile-head { display: flex; gap: .65rem; align-items: center; min-width: 0; }
.if-tile-head > div { min-width: 0; }
.if-tile-head strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.if-tile-head span { display: block; font-size: .8rem; color: var(--muted); }
.if-tile-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark) !important; display: grid !important; place-items: center; font-size: .72rem !important; font-weight: 700; flex: none; }
.if-tile-logo.green { background: var(--accent-soft); color: var(--accent-dark) !important; }
.if-tile-logo.warn { background: #fef3c7; color: var(--warn) !important; }
.if-tile-logo.info { background: #e8efff; color: var(--info) !important; }
.if-tile-value { font-family: var(--font-title); font-size: 1.65rem; font-weight: 700; color: var(--brand-dark); line-height: 1.1; overflow-wrap: anywhere; }
.if-tile-link { font-size: .84rem; color: var(--brand-dark); margin-top: auto; }
.if-tile-sub { font-size: .8rem; color: var(--muted); margin-top: auto; }
.if-progress { background: var(--accent-soft); height: 8px; border-radius: 4px; overflow: hidden; margin-top: auto; }
.if-progress > div { height: 100%; background: var(--accent); }
.if-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.if-bars { display: flex; flex-direction: column; gap: .55rem; }
.if-bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(3rem, 1fr) auto; gap: .75rem; align-items: center; font-size: .86rem; }
.if-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.if-bar-track { background: var(--brand-soft); border-radius: 6px; height: 12px; overflow: hidden; }
.if-bar-fill { background: var(--brand); height: 100%; border-radius: 6px; }
.if-bar-fill.green { background: var(--accent); }
.if-skeleton { border-radius: 10px; background: linear-gradient(90deg, #f3f1ef 25%, #ebe7e3 50%, #f3f1ef 75%); background-size: 200% 100%; animation: if-shimmer 1.4s infinite; }
@keyframes if-shimmer { to { background-position: -200% 0; } }

/* Boutons */
.if-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.if-btn:disabled { opacity: .5; cursor: not-allowed; }
.if-btn-primary { background: var(--brand); color: #fff; } .if-btn-primary:hover:not(:disabled) { background: var(--brand-deep); }
.if-btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--brand-line); } .if-btn-outline:hover { background: var(--brand-soft); }
.if-btn-sm { min-height: 34px; padding: .3rem .75rem; font-size: .85rem; }

/* ---------- Classes historiques des modules, harmonisées ---------- */
.admin-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-page-heading h1 { font-family: var(--font-title); font-size: 1.55rem; line-height: 1.2; font-weight: 700; color: var(--text); margin: 0; letter-spacing: 0; }
.admin-page-heading h1:focus { outline: none; }
.admin-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--brand-dark); margin: 0 0 .25rem; }
.heading-dot { color: var(--brand); }
.admin-page-description { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.admin-content { padding: 0; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .5rem 1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.admin-button svg { width: 15px; height: 15px; }
.admin-button.primary { background: var(--brand); color: #fff; } .admin-button.primary:hover:not(:disabled) { background: var(--brand-deep); }
.admin-button.secondary { background: #fff; color: var(--brand-dark); border-color: var(--brand-line); } .admin-button.secondary:hover:not(:disabled) { background: var(--brand-soft); }
.admin-button:disabled { opacity: .55; cursor: not-allowed; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(60, 30, 10, .06); }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.admin-panel-heading h2 { font-size: .95rem; font-weight: 600; margin: 0; }
.admin-panel-heading p { font-size: .8rem; color: var(--muted); margin: .15rem 0 0; }
.admin-text-link { color: var(--brand-dark); background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.admin-text-link:hover { text-decoration: underline; }
.admin-caption { font-size: .8rem; color: var(--muted); }
.admin-section-note { font-size: .78rem; color: var(--muted); margin: 1rem 0 0; text-align: right; }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .75rem; border-radius: 9px; }
/* Cartes KPI (modules) : bordure de couleur à gauche, comme les .kpi de PDCI-RDA */
.overview-kpis, .audit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.audit-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-kpi { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.1rem; min-width: 0; }
.admin-kpi.blue { border-left-color: var(--info); } .admin-kpi.emerald { border-left-color: var(--accent); } .admin-kpi.amber { border-left-color: var(--warn); }
.admin-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.admin-kpi-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.admin-kpi-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: .85rem; }
.admin-kpi.blue .admin-kpi-icon { background: #e8efff; color: var(--info); } .admin-kpi.emerald .admin-kpi-icon { background: var(--accent-soft); color: var(--accent-dark); } .admin-kpi.amber .admin-kpi-icon { background: #fff4e1; color: var(--warn); }
.admin-kpi-value { font-family: var(--font-title); font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin: 0; }
.admin-kpi-sub { font-size: .8rem; color: var(--muted); margin: .3rem 0 0; }
.admin-empty { padding: 2.25rem 1.5rem; text-align: center; }
.admin-empty-icon { margin: 0 auto .9rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-dark); font-size: 1.1rem; }
.admin-empty h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.admin-empty p { font-size: .88rem; color: var(--muted); max-width: 340px; margin: .4rem auto 0; }
.admin-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--muted); background: var(--bg); font: 14px Inter, system-ui, sans-serif; }
.admin-loader { width: 23px; height: 23px; border: 2px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: admin-spin 1s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
/* Écrans encore écrits en Tailwind : même ton de cartes et d'accent */
.if-content > .bg-white, .if-content > div > .bg-white { border-color: var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(60, 30, 10, .06); }
.if-content .bg-black { background: var(--brand); }
.if-content .bg-black:hover { background: var(--brand-deep); }
.if-content table { font-variant-numeric: tabular-nums; }

/* ---------- Rubriques à tableau : même rendu que les cadres du tableau de bord ---------- */
.if-toolbar-spacer { flex: 1; }
.if-select { width: auto; min-width: 11rem; cursor: pointer; }
.if-search-clear { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.if-search-clear:hover { background: var(--brand-soft); color: var(--brand-dark); }
.if-menu { position: relative; }
.if-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(17, 24, 39, .12); padding: .3rem; display: grid; }
.if-menu-list button { text-align: left; background: none; border: 0; font: inherit; font-size: .88rem; padding: .55rem .7rem; border-radius: 6px; cursor: pointer; color: var(--text); }
.if-menu-list button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.if-btn-ok { background: var(--accent); color: #fff; } .if-btn-ok:hover:not(:disabled) { background: var(--accent-dark); }
.if-btn-danger { background: #fff; color: var(--danger); border-color: #f3c7c7; } .if-btn-danger:hover:not(:disabled) { background: #fef2f2; }
.if-btn-ghost { background: transparent; color: var(--brand-dark); padding-left: .4rem; padding-right: .4rem; } .if-btn-ghost:hover:not(:disabled) { background: var(--brand-soft); }
.if-icon-action { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--brand-dark); cursor: pointer; }
.if-icon-action:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-line); }
.if-icon-action.ok { color: var(--accent-dark); } .if-icon-action.ok:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-line); }
.if-icon-action.danger { color: var(--danger); } .if-icon-action.danger:hover:not(:disabled) { background: #fef2f2; border-color: #f3c7c7; }
.if-icon-action:disabled { opacity: .45; cursor: not-allowed; }
.if-icon-action .crm-icon { width: 1.05rem; height: 1.05rem; opacity: 1; }
.if-grid-panel { overflow: hidden; }

/* Grille du portail (Shared/Grid/DataGrid.razor) : en-têtes en petites capitales, filets fins, survol orangé */
.if-grid { display: flex; flex-direction: column; background: #fff; }
.if-grid-scroll { overflow: auto; max-height: calc(100vh - 52px - 15rem); min-height: 240px; }
.overview-kpis ~ .if-grid-panel .if-grid-scroll, .audit-summary ~ .if-grid-panel .if-grid-scroll { max-height: calc(100vh - 52px - 22rem); }
.if-grid-table th { position: sticky; top: 0; z-index: 1; }
.if-grid-table td { vertical-align: middle; }
.if-grid-table tbody tr { cursor: default; }
.if-grid-table tbody tr.is-focused td { background: var(--brand-soft); }
.if-grid-table tbody tr.is-focused td:first-child { box-shadow: inset 2px 0 0 var(--brand); }
.if-grid-table tfoot td { background: #faf9f8; border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; color: var(--muted); position: sticky; bottom: 0; }
.if-grid-summary { display: block; white-space: nowrap; }
.if-grid-sort { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.if-grid-sort:hover { color: var(--brand-dark); }
.if-grid-sort-ico { font-size: .8rem; opacity: .55; }
th[aria-sort] .if-grid-sort { color: var(--brand-dark); }
th[aria-sort] .if-grid-sort-ico { opacity: 1; }
.if-grid-expand-col { width: 44px; padding-left: .4rem !important; padding-right: 0 !important; }
.if-grid-detail td { background: #fcfbfa; border-bottom: 1px solid var(--line); }
.if-grid-empty td { padding: 0; }
.if-grid-empty:hover td { background: #fff !important; }
.if-grid-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .6rem .9rem; border-top: 1px solid var(--line); background: #faf9f8; font-size: .85rem; }
.if-grid-pages { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.if-grid-pages .if-btn { min-width: 34px; padding-left: .5rem; padding-right: .5rem; }
.if-inline-select { min-height: 36px; padding: .3rem .5rem; min-width: 10rem; }

/* Fenêtre de dialogue (remplace DxPopup) */
.if-dialog-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(17, 24, 39, .45); display: grid; place-items: center; padding: 1rem; }
.if-dialog { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.if-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.if-dialog-head h2 { font-family: var(--font-title); font-size: 1.1rem; color: var(--brand-dark); margin: 0; }
.if-dialog-body { padding: 1.25rem; }
.if-dialog-foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.if-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.if-form-grid .if-full { grid-column: 1 / -1; }

/* Cellules */
.crm-cell-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.crm-cell-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crm-cell-sub { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.crm-cell-link { font-size: .75rem; font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.crm-person { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.crm-avatar { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; font-weight: 700; }
.crm-you { font-style: normal; font-size: .6875rem; font-weight: 600; color: var(--accent-dark); margin-left: .375rem; }
.crm-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }
.crm-rating { color: #b45309; font-weight: 600; white-space: nowrap; } .crm-rating small { color: var(--muted); font-weight: 400; } .crm-rating-off { color: #d6d6d6; }
.crm-row-actions { display: flex; justify-content: flex-end; gap: .25rem; }
.crm-inline-combo { width: 100%; }
.crm-inline-actions { display: flex; align-items: center; gap: .5rem; }
.crm-status { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.crm-status::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.crm-status-success { color: var(--ok); } .crm-status-danger { color: var(--danger); } .crm-status-warning { color: var(--warn); } .crm-status-info { color: var(--info); } .crm-status-neutral { color: #616161; }
.crm-detail { padding: .5rem 1rem; font-size: .8125rem; line-height: 1.6; }
.crm-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }
.crm-notes { white-space: pre-wrap; margin-top: .5rem; }
.crm-empty { display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: 2.5rem 1rem; text-align: center; }
.crm-empty span { font-size: .8125rem; color: var(--muted); max-width: 26rem; }
.crm-alert { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); font-size: .9rem; }

/* Icônes (masques SVG, couleur = currentColor) */
.crm-icon { display: inline-block; width: 1.25rem; height: 1.25rem; background-color: currentColor; opacity: .8; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.crm-icon-menu{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%206h18M3%2012h18M3%2018h18%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%206h18M3%2012h18M3%2018h18%27/%3E%3C/svg%3E")}
.crm-icon-signout{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%205H5v14h4m5-14%207%207-7%207m-4-7h11%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%205H5v14h4m5-14%207%207-7%207m-4-7h11%27/%3E%3C/svg%3E")}
.crm-icon-workspace{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2012l9-8%209%208M5%2010v10h5v-6h4v6h5V10%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2012l9-8%209%208M5%2010v10h5v-6h4v6h5V10%27/%3E%3C/svg%3E")}
.crm-icon-venue{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2021s-7-6.5-7-12a7%207%200%200%201%2014%200c0%205.5-7%2012-7%2012zM12%2011.5a2.5%202.5%200%201%200%200-5%202.5%202.5%200%200%200%200%205z%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2021s-7-6.5-7-12a7%207%200%200%201%2014%200c0%205.5-7%2012-7%2012zM12%2011.5a2.5%202.5%200%201%200%200-5%202.5%202.5%200%200%200%200%205z%27/%3E%3C/svg%3E")}
.crm-icon-shield{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203l8%203v6c0%204.5-3.4%208.3-8%209-4.6-.7-8-4.5-8-9V6l8-3z%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203l8%203v6c0%204.5-3.4%208.3-8%209-4.6-.7-8-4.5-8-9V6l8-3z%27/%3E%3C/svg%3E")}
.crm-icon-export{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203v12m0-12-4%204m4-4%204%204M4%2015v5h16v-5%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203v12m0-12-4%204m4-4%204%204M4%2015v5h16v-5%27/%3E%3C/svg%3E")}
.crm-icon-refresh{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%204v5h5m11%2011v-5h-5M5%209a8%208%200%200%201%2013-3m1%209a8%208%200%200%201-13%203%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%204v5h5m11%2011v-5h-5M5%209a8%208%200%200%201%2013-3m1%209a8%208%200%200%201-13%203%27/%3E%3C/svg%3E")}
.crm-icon-add{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%205v14M5%2012h14%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%205v14M5%2012h14%27/%3E%3C/svg%3E")}
.crm-icon-edit{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2020h4L19%209l-4-4L4%2016v4zM14%206l4%204%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2020h4L19%209l-4-4L4%2016v4zM14%206l4%204%27/%3E%3C/svg%3E")}
.crm-icon-check{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012.5l4.5%204.5L19%207.5%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012.5l4.5%204.5L19%207.5%27/%3E%3C/svg%3E")}
.crm-icon-archive{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%207h16M5%207l1%2013h12l1-13M9%204h6M10%2011v5m4-5v5%27/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%207h16M5%207l1%2013h12l1-13M9%204h6M10%2011v5m4-5v5%27/%3E%3C/svg%3E")}

/* ---------- Responsive (mobile-first terrain, skill azo-ui-design-system) ---------- */
@media (min-width: 861px) and (min-height: 575px) {
  .if-sidebar { overflow: hidden; }
  .if-sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .if-brand { min-height: 52px; padding: 0 1rem; border-bottom: 1px solid var(--line); }
  .if-sidebar-footer { background: #fff; border-top: 1px solid var(--line); }
}
@media (min-width: 1280px) { .if-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .if-overview { grid-template-columns: 1fr; }
  .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .if-shell { grid-template-columns: 1fr; }
  .if-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 90vw); visibility: hidden; transform: translateX(-100%); transition: transform .2s; z-index: 40; }
  .menu-open .if-sidebar { visibility: visible; transform: none; }
  body:has(.menu-open) { overflow: hidden; }
  .if-menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 39; }
  .if-menu-toggle { display: inline-grid; }
  .if-topbar { padding: 0 1rem; } .if-scope .muted, .if-top-date { display: none; }
  .if-toolbar { flex-wrap: wrap; } .if-searchbar { flex-basis: 100%; }
  .if-content { padding: 1.25rem 1rem 3rem; }
  .audit-summary { grid-template-columns: 1fr; }
  .if-grid-scroll { max-height: none; }
  .if-grid-table thead { display: none; }
  .if-grid-table tbody tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin: .6rem; padding: .4rem; background: #fff; }
  .if-grid-table tbody td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0; padding: .35rem .45rem; text-align: right; width: auto !important; min-width: 0 !important; }
  .if-grid-table tbody td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .78rem; text-align: left; }
  .if-grid-table tbody td.if-grid-expand-col::before, .if-grid-detail td::before, .if-grid-empty td::before { content: none; }
  .if-grid-table tfoot { display: none; }
  .if-form-grid { grid-template-columns: 1fr; }
  .if-toolbar > * { flex: 1 1 auto; }
  .if-select { min-width: 0; }
  .if-head-actions { margin-left: 0; width: 100%; }
  .if-table thead { display: none; }
  .if-table tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin: .75rem; padding: .5rem; background: #fff; }
  .if-table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem .4rem; text-align: right; }
  .if-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8rem; text-align: left; }
}
@media (max-width: 560px) {
  .overview-kpis { grid-template-columns: 1fr; }
  .if-topbar-actions .if-top-link { display: none; }
  .if-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .if-shell *, .admin-loader, .if-skeleton { transition: none !important; animation: none !important; } }

/* ---------- People : éditeur de portrait (Pages/Admin/PersonalityEditor.razor) ---------- */
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 360px); gap: 1.25rem; align-items: start; }
.pp-main, .pp-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.pp-side { position: sticky; top: 68px; }
.pp-textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.pp-count { font-size: .78rem; font-variant-numeric: tabular-nums; }
.pp-gap { margin-top: .9rem; }
.pp-flush { margin: 0; }
.pp-intro { margin: 0 0 1rem; }
.pp-empty { margin: 0 0 1rem; }
.pp-item { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem .75rem; margin: 0 0 1rem; background: #fcfbfa; min-width: 0; }
.pp-item-legend { padding: 0 .4rem; font-size: .8rem; font-weight: 600; color: var(--brand-dark); }
.pp-item-actions { display: flex; justify-content: flex-end; gap: .25rem; margin-top: .4rem; }
.pp-remove { color: var(--danger); }
.pp-org { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; }
.pp-logo { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.pp-logo img, .pp-logo-empty { width: 80px; height: 80px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.pp-logo-empty, .pp-portrait-empty { display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); }
.pp-upload { position: relative; overflow: hidden; cursor: pointer; }
.pp-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pp-upload:focus-within { outline: 3px solid rgba(194, 84, 14, .3); outline-offset: 2px; }
.pp-portrait { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.pp-portrait img, .pp-portrait-empty { width: 160px; height: 200px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.pp-portrait-empty { font-size: 2.4rem; }
.pp-portrait .if-hint { margin: 0; }
.pp-publish { display: flex; flex-direction: column; gap: .8rem; }
.pp-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .55rem; align-items: start; font-size: .88rem; line-height: 1.45; cursor: pointer; }
.pp-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); }
.pp-warn { color: var(--warn); margin: 0; }
.pp-blockers { font-size: .84rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: .65rem .8rem; color: #78350f; }
.pp-blockers ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.pp-actions { display: flex; flex-direction: column; gap: .5rem; }
.pp-actions .if-btn { width: 100%; justify-content: center; }
@media (max-width: 1100px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .pp-org { grid-template-columns: 1fr; }
  .pp-logo { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Forfait d'un événement (Pages/Admin/EventFeePage.razor) ---------- */
.fee-tiles { margin-bottom: 1.25rem; }
.fee-tiles .if-tile { gap: .3rem; }
.fee-tiles .if-tile-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.fee-tiles .if-tile strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--text); }
.fee-tiles .if-tile small { font-size: .8rem; color: var(--muted); }
.fee-tiles .fee-due { border-color: #fde68a; background: #fffbeb; }
.fee-tiles .fee-due strong { color: var(--warn); }
.fee-tiles .fee-ok { border-color: var(--accent-line); background: var(--accent-soft); }
.fee-tiles .fee-ok strong { color: var(--accent-dark); }
.fee-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.fee-pay { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; font-size: .92rem; line-height: 1.55; }
.fee-pay p { margin: 0; }
.fee-manual { width: 100%; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.fee-manual h3 { margin: 0; font-size: .9rem; color: var(--brand-dark); }
.fee-manual .if-form-grid { width: 100%; }
.fee-current td { background: var(--brand-soft); font-weight: 600; color: var(--brand-dark); }
@media (max-width: 960px) { .fee-layout { grid-template-columns: 1fr; } }
.fee-grid-panel { margin-top: 1.25rem; max-width: 560px; }
.fee-grid-intro { margin: 0 0 1rem; }
.fee-grid-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.fee-grid-table .if-input { max-width: 9rem; min-height: 38px; }
.fee-grid-actions { margin-top: .9rem; }
.fee-alert { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .8rem 1rem; margin-bottom: .75rem; color: inherit; text-decoration: none; border-color: #fde68a; background: #fffbeb; }
.fee-alert:hover { border-color: var(--warn); }
.fee-alert strong { display: block; font-size: .9rem; color: var(--warn); }
.fee-alert small { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-alert-go { color: var(--warn); font-weight: 700; }
@media (min-width: 1100px) { .fee-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Associations : éditeur (Pages/Admin/AssociationEditor.razor, mise en page pp-*) ---------- */
.as-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.as-officer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.as-logo { width: 120px; height: 120px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.as-logo-empty { display: grid; place-items: center; background: #1f2937; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
@media (max-width: 640px) { .as-officer { grid-template-columns: 1fr; } }

/* ---------- Pages d'accès (inscription) — mise en page reprise de l'espace responsables PDCI-RDA,
   aux couleurs Côte d'Ivoire Feeling : panneau de marque à gauche, carte à droite ---------- */
.if-auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #f8f8f7; font-family: var(--font); color: var(--text); }
.if-auth-art { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 3rem; color: #fff;
  background: radial-gradient(circle at 20% 20%, #e8742a 0, var(--brand) 35%, #7a2f05 100%); }
.if-auth-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); pointer-events: none; }
.if-auth-logo { width: 110px; height: 110px; border-radius: 16px; background: #fff; padding: 12px; display: grid; grid-template-rows: 1fr auto; gap: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.if-auth-flag { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 8px; overflow: hidden; border: 1px solid #f1e6dc; }
.if-auth-flag span:nth-child(1) { background: #f37021; } .if-auth-flag span:nth-child(2) { background: #fff; } .if-auth-flag span:nth-child(3) { background: #009a44; }
.if-auth-logo strong { font-family: var(--font-title); font-size: .78rem; color: #1f2937; text-align: center; line-height: 1; }
.if-auth-eyebrow { margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: #fde68a; }
.if-auth-art h1 { margin: 0; font-family: var(--font-title); font-size: 2.3rem; line-height: 1.2; max-width: 540px; }
.if-auth-art p { color: #ffe7d6; max-width: 500px; line-height: 1.6; }
.if-auth-lead { margin: 1rem 0 0; font-size: 1.02rem; }
.if-auth-note { margin: 0; font-size: .8rem; position: relative; z-index: 1; }
.if-auth-form { display: grid; place-items: center; padding: 2rem; min-width: 0; }
.if-auth-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.if-auth-stripe { height: 6px; border-radius: 3px; margin-bottom: 1.5rem; border: 1px solid var(--line);
  background: linear-gradient(90deg, #f37021 0 33.3%, #fff 33.3% 66.6%, #009a44 66.6% 100%); }
.if-auth-card h1 { margin: 0 0 .4rem; font-family: var(--font-title); font-size: 1.6rem; color: var(--text); }
.if-auth-card > .muted { margin: 0 0 1.4rem; line-height: 1.5; }
.if-auth-fields { display: grid; gap: .95rem; }
.if-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.if-auth-card .if-label { margin: 0; font-size: .88rem; }
.if-auth-card .if-label small { font-weight: 400; color: var(--muted); }
.if-auth-card .validation-message { color: var(--danger); font-size: .8rem; font-weight: 500; }
.if-auth-hint { margin: -.35rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.if-auth-type { display: grid; grid-template-columns: 44px 1fr; gap: .75rem; align-items: center; padding: .75rem .9rem; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.if-auth-type-ico { width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--brand-dark); display: grid; place-items: center; }
.if-auth-type p { margin: 0; font-size: .84rem; line-height: 1.45; color: #5b2a0c; }
.if-auth-type strong { display: block; margin-bottom: .1rem; font-size: .9rem; color: var(--brand-dark); }
.if-auth-consent { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; font-size: .8rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.if-auth-consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); }
.if-auth-consent a { color: var(--brand-dark); font-weight: 600; }
.if-auth-submit { width: 100%; min-height: 48px; font-size: 1rem; }
.if-auth-foot { margin: 1.25rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.if-auth-foot a { color: var(--brand-dark); font-weight: 600; }
.if-auth-success { text-align: center; display: grid; gap: .8rem; justify-items: center; }
.if-auth-success-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 1.6rem; font-weight: 700; }
@media (max-width: 960px) { .if-auth { grid-template-columns: 1fr; } .if-auth-art { display: none; } }
.if-auth-art > * { position: relative; z-index: 1; }
@media (max-width: 520px) { .if-auth-form { padding: 1rem; } .if-auth-card { padding: 1.4rem; } .if-auth-row { grid-template-columns: 1fr; } }
.if-auth h1:focus { outline: none; }

/* Connexion : compléments (cartes « espaces », bande kita, barre d'étapes, 2FA) */
.if-auth-features { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; max-width: 520px; }
.if-auth-features li { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: center; padding: .75rem .9rem; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(2px); }
.if-auth-feature-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--brand-dark); }
.if-auth-features strong { display: block; font-size: .92rem; color: #fff; }
.if-auth-features li > span:last-child { font-size: .84rem; color: #ffe7d6; line-height: 1.4; }
.if-auth-kita { height: 12px; max-width: 520px; margin-bottom: 1rem; border-radius: 3px; opacity: .9;
  background: repeating-linear-gradient(90deg, #f37021 0 12px, #fff 12px 24px, #009a44 24px 36px, #1f2937 36px 40px); }
.if-auth-progress { height: 6px; border-radius: 3px; margin-bottom: 1.5rem; background: #f1eeeb; border: 1px solid var(--line); overflow: hidden; }
.if-auth-progress span { display: block; height: 100%; border-radius: 3px; transition: width .35s ease; background: #f37021; }
.if-auth-progress.is-done span { background: linear-gradient(90deg, #f37021 0 33.3%, #fff 33.3% 66.6%, #009a44 66.6% 100%); }
.if-auth-mobile-brand { display: none; align-items: center; gap: .6rem; justify-content: center; margin-bottom: 1rem; }
.if-auth-mobile-brand .if-auth-flag { width: 34px; height: 24px; }
.if-auth-mobile-brand strong { font-family: var(--font-title); font-size: 1.15rem; color: var(--text); }
@media (max-width: 960px) { .if-auth-mobile-brand { display: flex; } .if-auth-form { align-content: start; } }
.if-auth-password { position: relative; display: block; }
.if-auth-password .if-input { padding-right: 3rem; }
.if-auth-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.if-auth-eye:hover { color: var(--brand-dark); background: var(--brand-soft); }
.if-auth-eye:focus-visible { outline: 3px solid rgba(194, 84, 14, .3); }
.if-auth-hint-flush { margin: 0; }
.if-auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0 .9rem; font-size: .8rem; color: var(--muted); }
.if-auth-divider::before, .if-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.if-auth-link { border: 0; background: none; padding: .4rem; font: inherit; color: var(--brand-dark); font-weight: 600; cursor: pointer; }
.if-auth-secret { display: block; margin: .5rem 0 1rem; padding: .75rem; border-radius: 8px; background: #f8f8f7; border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.if-auth-otp { font-size: 1.2rem; letter-spacing: .3em; text-align: center; }
.if-auth-codes { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.if-auth-codes li { padding: .5rem; border-radius: 8px; background: #f8f8f7; border: 1px solid var(--line); text-align: center; }
@media (max-height: 760px) { .if-auth-features { display: none; } }
@media (prefers-reduced-motion: reduce) { .if-auth-progress span { transition: none; } }

/* ---------- Espaces restaurateur / fonctionnalités (sp-*) ---------- */
.sp-notice { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-dark); border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1rem; font-weight: 500; }
.sp-section { margin-bottom: 1.75rem; }
.sp-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.35rem; margin-bottom: 1rem; }
.sp-card h2 { font: 700 1.05rem/1.3 var(--font-title); margin: 0 0 .75rem; }
.sp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.sp-card-head h2 { margin: 0; }
.sp-card-head a { color: var(--brand-dark); font-weight: 600; font-size: .88rem; }
.sp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.sp-kpi { display: grid; gap: .2rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; color: inherit; text-decoration: none; position: relative; overflow: hidden; }
.sp-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.sp-kpi.is-alert::before { background: var(--brand); }
.sp-kpi span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.sp-kpi strong { font: 800 1.9rem/1.1 var(--font-title); letter-spacing: -.02em; }
.sp-kpi small { color: var(--muted); font-size: .8rem; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sp-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.sp-list li:first-child { border-top: 0; }
.sp-list li > div { display: grid; min-width: 0; }
.sp-list small { color: var(--muted); font-size: .82rem; }
.sp-date { display: grid; place-items: center; width: 46px; height: 50px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: .7rem; text-transform: uppercase; line-height: 1.1; }
.sp-date strong { font: 800 1.15rem/1 var(--font-title); }
.sp-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font: 800 .85rem var(--font-title); }
.sp-form { max-width: 820px; }
.sp-choice { border: 0; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.sp-choice legend { font-weight: 700; margin-bottom: .5rem; }
.sp-choice label { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; }
.sp-choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sp-choice label.is-off { opacity: .7; cursor: default; }
.sp-choice small { display: block; color: var(--muted); }
.sp-choice a { color: var(--brand-dark); }
.sp-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: 1rem; }
.sp-actions .if-input { min-width: 200px; flex: 1; }
.sp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.sp-feature { display: flex; flex-direction: column; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.sp-feature.sp-feature-selected { outline: 2px solid var(--brand); outline-offset: 2px; }
.sp-feature.is-on { border-color: var(--accent-line); box-shadow: inset 0 3px 0 var(--accent); }
.sp-feature header { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.sp-feature h3 { font: 700 1rem/1.3 var(--font-title); margin: 0; }
.sp-feature p { margin: 0; color: var(--muted); font-size: .9rem; }
.sp-feature > .if-btn, .sp-feature > .sp-toggle { align-self: flex-start; margin-top: auto; }
.sp-feature-group { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }
.sp-audience { font-size: .75rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: .1rem .55rem; }
.sp-note { background: #f8fafc; border-left: 3px solid var(--brand); padding: .4rem .7rem; border-radius: 6px; }
.sp-muted { color: var(--muted); font-size: .85rem; }
.sp-function { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.sp-function h3 { margin: 0 0 .25rem; font: 700 1rem var(--font-title); }
.sp-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.sp-tabs a { padding: .7rem 1rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.sp-tabs a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.sp-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.sp-toolbar .if-label { min-width: 220px; }
.sp-requests { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.sp-request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, auto); gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 1rem 1.15rem; }
.sp-request h3 { margin: .15rem 0 .25rem; font: 700 1rem var(--font-title); }
.sp-request h3 small { font: 400 .85rem var(--font); color: var(--muted); margin-left: .35rem; }
.sp-request p { margin: 0 0 .2rem; }
.sp-request .sp-actions { margin-top: 0; }
.sp-transfer { display: grid; gap: .5rem; }
.sp-empty { display: grid; gap: .25rem; text-align: center; padding: 2rem; }
.sp-upsell { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-left: 4px solid var(--accent); }
.sp-upsell p { margin: .25rem 0 0; }
.sp-matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.sp-matrix { width: 100%; border-collapse: collapse; }
.sp-matrix th, .sp-matrix td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sp-matrix thead th { background: #f8fafc; font-size: .82rem; color: var(--muted); }
.sp-matrix thead th small { display: block; color: var(--danger); font-weight: 500; }
.sp-matrix tbody th { font-weight: 600; }
.sp-matrix td small { display: block; margin-top: .2rem; font-size: .75rem; }
.sp-toggle { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem .3rem .3rem; font: 600 .82rem var(--font); color: var(--muted); cursor: pointer; min-height: 36px; }
.sp-toggle span { width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; }
.sp-toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sp-toggle.is-on { color: var(--accent-dark); border-color: var(--accent-line); background: var(--accent-soft); }
.sp-toggle.is-on span { background: var(--accent); }
.sp-toggle.is-on span::after { transform: translateX(14px); }
.sp-toggle:disabled { opacity: .6; cursor: wait; }
.if-space-switch { display: grid; grid-auto-flow: column; gap: 4px; margin: 0 .9rem .75rem; padding: 4px; background: #f1f5f9; border-radius: 10px; }
.if-space-switch button { border: 0; background: transparent; border-radius: 7px; padding: .45rem .5rem; font: 600 .8rem var(--font); color: var(--muted); cursor: pointer; min-height: 36px; }
.if-space-switch button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
@media (max-width: 1100px) { .sp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .sp-kpis { grid-template-columns: 1fr 1fr; } .sp-request { grid-template-columns: 1fr; } .sp-upsell { flex-direction: column; align-items: flex-start; }
  .sp-matrix thead { display: none; } .sp-matrix tr { display: grid; border-bottom: 1px solid var(--line); } .sp-matrix th, .sp-matrix td { border: 0; padding: .45rem 1rem; }
  .sp-matrix td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
}
.sp-alert { text-decoration: none; color: inherit; border-left-color: var(--brand); background: var(--brand-soft); }
.sp-big { font: 800 1.25rem/1.3 var(--font-title); margin: 0 0 .35rem; }
.sp-sittings { display: grid; gap: .5rem; margin: 1rem 0; }
.sp-sitting { display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(2, minmax(110px, 1fr)) minmax(120px, 1fr) 60px auto; gap: .6rem; align-items: center; }
.sp-sitting-head { font-size: .78rem; font-weight: 600; color: var(--muted); }
.sp-check { display: grid; place-items: center; min-height: 44px; }
.sp-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.sp-toolbar-btn { align-self: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) { .sp-sitting { grid-template-columns: 1fr 1fr; } .sp-sitting-head { display: none; } }
.sp-checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.sp-checklist li { display: grid; grid-template-columns: 32px 1fr; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
.sp-checklist li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; color: var(--muted); font-weight: 800; }
.sp-checklist li.is-ok { border-color: var(--accent-line); background: var(--accent-soft); }
.sp-checklist li.is-ok > span { background: var(--accent); color: #fff; }
.sp-checklist small { display: block; color: var(--muted); }
.sp-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem; font-size: .9rem; }
.sp-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.if-progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.sp-message { white-space: pre-line; margin-top: .3rem !important; }
.sp-thumb { max-width: 240px; border-radius: 10px; margin-top: .75rem; display: block; }
.sp-list li.is-past { opacity: .6; }
.sp-list li > span:last-child { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.sp-credentials code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; font-size: .95rem; user-select: all; }
.sp-plan { grid-template-columns: minmax(120px, 1fr) 110px 90px minmax(160px, 2fr) 50px auto; }
@media (max-width: 860px) { .sp-plan { grid-template-columns: 1fr 1fr; } }
.sp-catalog-row { display: grid; grid-template-columns: 130px minmax(150px, 1.4fr) minmax(130px, 1fr) minmax(120px, 1fr) 50px auto; gap: .5rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.sp-catalog-row:first-of-type { border-top: 0; }
.sp-catalog-row .sp-wide { grid-column: 1 / -2; }
@media (max-width: 860px) { .sp-catalog-row { grid-template-columns: 1fr 1fr; } .sp-catalog-row .sp-wide { grid-column: 1 / -1; } }

.dashboard-results { margin-bottom: 1.5rem; }
.dashboard-results h3 { margin: .85rem 0 .3rem; font-size: .9rem; }
.dashboard-results ul { list-style: none; padding: 0; margin: 0; }
.dashboard-results li { padding: .3rem 0; overflow-wrap: anywhere; }
.dashboard-results a { color: var(--brand-dark); text-underline-offset: .18em; }
.dashboard-results small { margin-inline-start: .35rem; }
