/* RPR ARED — Design system */

:root {
    --primary: #5c3d1e;
    --primary-hover: #4a3118;
    --primary-soft: #faf7f4;
    --accent: #1e5a95;
    --accent-hover: #184a7a;
    --accent-soft: #eef4fa;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #101828;
    --text-muted: #667085;
    --text-secondary: #667085;
    --text-faint: #98a2b3;
    --border: #e4e7ec;
    --border-light: #f2f4f7;
    --hover: #f9fafb;
    --focus: rgba(30, 90, 149, 0.18);
    --success: #027a48;
    --success-soft: #ecfdf3;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --error: #b42318;
    --error-soft: #fef3f2;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --sidebar-w: 15.5rem;
    --topbar-h: 3.5rem;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.app-shell { display: flex; min-height: 100vh; background: var(--bg); }
.app-main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 0; }
@media (min-width: 1024px) { .app-main-col { margin-left: var(--sidebar-w); } }
.app-content { flex: 1; width: 100%; max-width: 100rem; margin-inline: auto; padding: 1.5rem 1rem 2.5rem; }
@media (min-width: 640px) { .app-content { padding: 1.75rem 1.5rem 3rem; } }
@media (min-width: 1024px) { .app-content { padding: 2rem 2rem 3rem; } }
.app-messages { padding: 1rem 1rem 0; }
@media (min-width: 1024px) { .app-messages { padding: 1rem 2rem 0; } }
.app-bg { background: var(--bg); }
.app-content-col { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 0; }
@media (min-width: 1024px) { .app-content-col { margin-left: var(--sidebar-w); } }
.app-main { flex: 1; padding: 2rem; }

.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-w);
    background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.2s;
}
@media (min-width: 1024px) { .sidebar { transform: translateX(0); } }
.sidebar.open { transform: translateX(0); }
.sidebar-brand { display: flex; align-items: center; height: var(--topbar-h); padding: 0 1.25rem; border-bottom: 1px solid var(--border-light); }
.brand-logo { height: 2rem; width: auto; max-width: min(100%, 14rem); object-fit: contain; display: block; }
.brand-logo-sm { height: 1.5rem; max-width: min(100%, 10rem); }
@media (min-width: 640px) { .brand-logo-sm { height: 2.8rem; max-width: min(100%, 14rem); } }
.brand-logo-lg { height: 3rem; max-width: min(100%, 20rem); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0.75rem; }
.sidebar-section { padding: 0.5rem 0.75rem 0.375rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.nav-link {
    position: relative; display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5rem 0.75rem; margin-bottom: 2px; border-radius: var(--radius);
    font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
}
.nav-link svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-link-active::before { content: ''; position: absolute; left: 0; top: 0.375rem; bottom: 0.375rem; width: 3px; border-radius: 0 2px 2px 0; background: var(--primary); }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-light); font-size: 0.6875rem; color: var(--text-faint); line-height: 1.45; }
#sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(16,24,40,0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#sidebar-backdrop.visible { opacity: 1; pointer-events: auto; }

.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 1rem; }
@media (min-width: 1024px) { .topbar-inner { padding: 0 2rem; } }
.topbar-icon-btn { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: none; border-radius: var(--radius); background: transparent; color: var(--text-muted); cursor: pointer; }
.topbar-icon-btn:hover { background: var(--hover); color: var(--text); }
.user-menu { position: relative; }
.user-menu-trigger { display: flex; align-items: center; gap: 0.375rem; padding: 0.25rem; border: none; border-radius: var(--radius); background: transparent; cursor: pointer; }
.user-menu-trigger:hover, .user-menu.open .user-menu-trigger { background: var(--hover); }
.user-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.user-menu-chevron { width: 1rem; height: 1rem; color: var(--text-faint); display: none; }
@media (min-width: 640px) { .user-menu-chevron { display: block; } }
.user-menu-dropdown { position: absolute; right: 0; top: calc(100% + 6px); width: 14.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(16,24,40,0.1); padding: 0.375rem; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all 0.15s; z-index: 50; }
.user-menu.open .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-header { padding: 0.625rem 0.75rem 0.5rem; }
.user-menu-header-row { display: flex; gap: 0.625rem; align-items: center; }
.user-menu-header-text { min-width: 0; flex: 1; }
.user-menu-header-name { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.user-menu-header-email { margin: 0.125rem 0 0; font-size: 0.6875rem; line-height: 1.35; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-header-role { margin: 0.125rem 0 0; font-size: 0.6875rem; line-height: 1.35; color: var(--accent); font-weight: 500; }
.user-menu-item {
    display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.4375rem 0.625rem;
    border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500; color: var(--text-muted);
    text-decoration: none; border: none; background: none; cursor: pointer; font-family: inherit; line-height: 1.25;
}
.user-menu-item svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--text-faint); }
.user-menu-item:hover { background: var(--hover); color: var(--text); }
.user-menu-item:hover svg { color: var(--text-muted); }
.user-menu-item.danger { color: var(--error); }
.user-menu-item.danger svg { color: var(--error); opacity: 0.85; }
.user-menu-item.danger:hover { background: var(--error-soft); color: var(--error); }
.user-menu-divider { height: 1px; background: var(--border-light); margin: 0.25rem 0.375rem; }
.user-menu-logout-form { margin: 0; padding: 0; }
.user-avatar-lg { width: 2.25rem; height: 2.25rem; font-size: 0.8125rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head__eyebrow { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.page-head__title { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.page-head__meta { margin: 0.375rem 0 0; font-size: 0.8125rem; color: var(--text-muted); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-header { margin-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.page-subtitle { margin: 0.375rem 0 0; color: var(--text-muted); }
.breadcrumb { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-faint); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.panel--list { box-shadow: var(--shadow-sm); }

.panel-filters { background: var(--bg); border-bottom: 1px solid var(--border-light); }
.panel-filters__search {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light);
}
.panel-filters__search .search-field--wide { flex: 1; min-width: 14rem; max-width: none; height: 2.5rem; }
.panel-filters__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; }
.panel-filters__grid {
    display: grid; gap: 0.875rem 1.125rem; padding: 1rem 1.25rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .panel-filters__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .panel-filters__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; } }
.field--compact { min-width: 0; }
.field--compact .field-label {
    display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em;
    text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.375rem;
}
.field-input--sm { min-height: 2.125rem; padding: 0.375rem 0.625rem; font-size: 0.8125rem; }

.panel-filters-inline {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); background: var(--bg);
}
.field--filter { min-width: 8.5rem; flex: 1 1 8.5rem; max-width: 13rem; }
.panel-filters-inline .search-field { flex: 1 1 12rem; max-width: 16rem; min-height: 2.25rem; height: auto; }
.panel-filters-inline .panel-filters-actions { flex: 0 0 auto; display: flex; gap: 0.5rem; align-items: center; }
.panel-filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border-light); }
.search-field { display: flex; align-items: center; gap: 0.5rem; flex: 1; max-width: 22rem; height: 2.375rem; padding: 0 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.search-field-icon { width: 1rem; height: 1rem; color: var(--text-faint); flex-shrink: 0; }
.search-field .search-input { flex: 1; min-width: 0; height: 100%; padding: 0 !important; margin: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; font-size: 0.875rem !important; outline: none !important; }
.panel-filters-drawer { display: none; padding: 1rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border-light); }
.panel-filters-drawer.open { display: block; }
.panel-filters-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin-bottom: 0.75rem; }
.panel-filters-actions { display: flex; gap: 0.5rem; }
.panel-foot { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border-light); font-size: 0.8125rem; color: var(--text-muted); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); }
.panel-head__title { margin: 0; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.panel-body { padding: 1.25rem; }
.panel + .panel { margin-top: 1.25rem; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .metrics { grid-template-columns: repeat(6, 1fr); } }
.metric {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1rem 1.125rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.metric:hover { border-color: #d0d5dd; box-shadow: var(--shadow-sm); }
.metric__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.metric__value { margin: 0; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.metric__label { margin: 0.375rem 0 0; font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; }
.metric__icon { width: 2rem; height: 2rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.metric__icon svg { width: 1.125rem; height: 1.125rem; }
.metric__icon--brown { background: var(--primary-soft); color: var(--primary); }
.metric__icon--blue { background: var(--accent-soft); color: var(--accent); }
.metric__icon--green { background: var(--success-soft); color: var(--success); }
.metric__icon--amber { background: var(--warning-soft); color: var(--warning); }
.metric__icon--slate { background: var(--border-light); color: var(--text-muted); }

.dash-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .dash-grid--2 { grid-template-columns: 1fr 1fr; } }

.dist-list { display: flex; flex-direction: column; gap: 1.125rem; padding: 1.25rem; }
.dist-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.8125rem; }
.dist-row__label { font-weight: 500; color: var(--text); }
.dist-row__count { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.feed-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border-light);
    text-decoration: none; color: inherit; transition: background 0.12s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--hover); }
.feed-item__title { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.feed-item__meta { margin: 0.125rem 0 0; font-size: 0.8125rem; color: var(--text-muted); }
.feed-item__arrow { color: var(--text-faint); flex-shrink: 0; }

.detail-hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.detail-hero__main { display: flex; gap: 1rem; align-items: flex-start; }
.detail-hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; }
.detail-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.detail-grid__main { display: flex; flex-direction: column; gap: 1.25rem; }
.detail-grid__side { display: flex; flex-direction: column; gap: 1.25rem; }

.profile-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 1.5rem;
}
.profile-banner__main { display: flex; align-items: center; gap: 1rem; }
.profile-banner__name { margin: 0; font-size: 1rem; font-weight: 600; }
.profile-avatar-sm { width: 3rem; height: 3rem; font-size: 0.875rem; }

.member-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem; padding: 1.125rem 1.25rem;
}
.member-hero__main { display: flex; align-items: center; gap: 0.875rem; min-width: 0; }
.member-hero__photo {
    width: 3.25rem; height: 3.25rem; border-radius: var(--radius); object-fit: cover; flex-shrink: 0;
}
.member-hero__name { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.member-formation-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem; padding: 1.125rem 1.25rem;
    border-color: rgba(30, 90, 149, 0.18); background: linear-gradient(135deg, #f7fbff, #fff);
}
.member-formation-banner--cta { border-color: rgba(2, 122, 72, 0.2); background: linear-gradient(135deg, #f3fbf7, #fff); }
.member-formation-banner__kicker {
    margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-faint);
}
.member-formation-banner__title { margin: 0.2rem 0 0; font-size: 1.0625rem; font-weight: 700; }
.member-formation-banner__meta { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.8125rem; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#panel-filter-toggle.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* DataTables */
div.dt-container { font-family: var(--font); font-size: 0.875rem; color: var(--text); }
.panel--list div.dt-container { padding: 0; }
div.dt-container .dt-layout-row { padding: 0.625rem 1.25rem; margin: 0 !important; align-items: center; }
div.dt-container .dt-layout-row.dt-layout-table { padding: 0; }
div.dt-container .dt-layout-row:not(.dt-layout-table) { background: var(--surface); }
div.dt-container .dt-layout-row:last-child {
    border-top: 1px solid var(--border-light);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 0.625rem 1rem; padding: 0.625rem 1.25rem; min-height: 2.75rem;
}
div.dt-container .dt-layout-row:last-child .dt-layout-cell {
    display: flex; align-items: center; flex-wrap: nowrap; gap: 0.625rem; padding: 0 !important;
}
div.dt-container .dt-layout-row:last-child .dt-layout-start { flex: 1 1 auto; min-width: 0; }
div.dt-container .dt-layout-row:last-child .dt-layout-end {
    flex: 0 0 auto; margin-left: auto; justify-content: flex-end;
}
div.dt-container .dt-length { display: flex; align-items: center; white-space: nowrap; }
div.dt-container .dt-length label {
    display: inline-flex; align-items: center; gap: 0.375rem; margin: 0;
    font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; line-height: 1;
}
div.dt-container .dt-length select {
    width: auto; min-width: 3.25rem; height: 2rem; padding: 0 1.625rem 0 0.5rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); font-family: inherit; font-size: 0.8125rem; font-weight: 500;
    color: var(--text); cursor: pointer;
}
div.dt-container .dt-search label {
    font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; margin: 0;
}
div.dt-container .dt-search input {
    min-width: 12rem; min-height: 2rem; padding: 0.25rem 0.625rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); font-family: inherit; font-size: 0.8125rem; color: var(--text);
}
div.dt-container .dt-search input:focus,
div.dt-container .dt-length select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
div.dt-container .dt-info { font-size: 0.8125rem; color: var(--text-muted); padding: 0; white-space: nowrap; }
div.dt-container .dt-paging { margin: 0; }
div.dt-container .dt-paging nav { display: flex; align-items: center; gap: 0.25rem; }
div.dt-container .dt-paging .dt-paging-button {
    min-width: 2rem; height: 2rem; padding: 0; margin: 0 !important;
    border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
    background: var(--surface) !important; color: var(--text) !important;
    font-size: 0.8125rem !important; font-weight: 500; line-height: 1; cursor: pointer;
    display: inline-flex !important; align-items: center; justify-content: center;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current) {
    background: var(--hover) !important; border-color: #c9cdd4 !important; color: var(--text) !important;
}
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--primary) !important;
    background-image: none !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: none !important;
    pointer-events: none;
}
div.dt-container .dt-paging .dt-paging-button.disabled {
    opacity: 1; color: var(--text-faint) !important; background: var(--bg) !important;
    border-color: var(--border-light) !important; cursor: default;
}
div.dt-container table.dataTable { margin: 0 !important; border-collapse: collapse; width: 100% !important; }
div.dt-container table.dataTable thead th {
    padding: 0.625rem 1.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border); background: var(--surface);
}
div.dt-container table.dataTable tbody td { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
div.dt-container table.dataTable tbody tr:last-child td { border-bottom: none; }
div.dt-container table.dataTable thead th .dt-column-order { opacity: 0.35; transition: opacity 0.12s; }
div.dt-container table.dataTable thead th:hover .dt-column-order { opacity: 1; }
div.dt-container .dt-empty { padding: 2.5rem 1.25rem; color: var(--text-muted); text-align: center; }

.list-item, .list-item-body, .list-item-title, .list-item-meta, .content-list { /* legacy aliases */ }
.list-item { display: block; text-decoration: none; color: inherit; }
.list-item-title { font-weight: 500; font-size: 0.875rem; margin: 0; }
.list-item-meta { font-size: 0.8125rem; color: var(--text-muted); margin: 0.125rem 0 0; }

.section-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.divide-y > * + * { border-top: 1px solid var(--border-light); }
.card-header-action { font-size: 0.8125rem; }
.stat-card-header { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
.table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table thead tr { border-bottom: 1px solid var(--border); }
.table th { padding: 0.625rem 1.25rem; text-align: left; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.table td { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--hover); }
.table tbody tr.row-clickable { cursor: pointer; transition: background 0.12s; }
.table tbody tr.row-clickable:hover { background: var(--primary-soft); }
.table-empty { text-align: center; padding: 3rem !important; color: var(--text-muted); }
.col-fit { width: 1%; text-align: right; white-space: nowrap; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag {
    display: inline-flex; padding: 0.125rem 0.4375rem; border-radius: 4px;
    font-size: 0.6875rem; font-weight: 500; background: var(--accent-soft); color: var(--accent);
    line-height: 1.4; white-space: nowrap;
}
.tag--blue { background: var(--accent-soft); color: var(--accent); }
.tag--brown { background: var(--primary-soft); color: var(--primary); }
.tag--gold { background: #fff7ed; color: #9a5b16; }
.tag--green { background: var(--success-soft); color: var(--success); }
.tag--red { background: var(--error-soft); color: var(--error); }
.tag--gray { background: var(--border-light); color: var(--text-muted); }

.cell-user { display: flex; align-items: center; gap: 0.75rem; }
.cell-user__photo, .cell-user__avatar { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); flex-shrink: 0; object-fit: cover; }
.cell-user__avatar { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 600; }
.cell-user__name { display: block; font-weight: 500; color: var(--text); text-decoration: none; }
a.cell-user__name:hover { color: var(--accent); }
.cell-user__meta { display: block; font-size: 0.8125rem; color: var(--text-muted); }
.row-action, .table-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--radius); color: var(--text-faint); text-decoration: none; }
.row-action:hover, .table-action-btn:hover { background: var(--border-light); color: var(--text); }

.status { display: inline-flex; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.status--ok { background: var(--success-soft); color: var(--success); }
.status--pending { background: var(--warning-soft); color: var(--warning); }
.status--error { background: var(--error-soft); color: var(--error); }
.status--neutral { background: var(--border-light); color: var(--text-muted); }

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-link { color: var(--accent); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-ghost, a.btn, a.btn-primary, a.btn-outline, button.btn, button.btn-primary, button.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
    min-height: 2.25rem; padding: 0 0.875rem; border-radius: var(--radius);
    font-family: inherit; font-size: 0.8125rem; font-weight: 500; text-decoration: none;
    cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-sm { min-height: 2rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-lg { min-height: 2.5rem; padding: 0 1.125rem; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline, .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover, .btn-secondary:hover { background: var(--hover); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field-label, .form-label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.field-input, .form-input, select, textarea, .form-card input, .form-card select,
.panel-filters-inline select, .panel-filters-inline input:not(.search-input),
.panel-filters__grid select, .panel-filters__grid input:not(.search-input),
.panel-filters-drawer select, .panel-filters-drawer input:not(.search-input),
input[type="text"]:not(.search-input), input[type="email"], input[type="password"], input[type="date"], input[type="tel"], input[type="number"] {
    width: 100%; min-height: 2.25rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); font-family: inherit; font-size: 0.875rem; color: var(--text);
}
.field-input:focus, select:focus, textarea:focus, input:not(.search-input):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 42rem; }
.form-card-wide { max-width: 56rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-body { padding: 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); }
.card-header-title { font-size: 0.9375rem; font-weight: 600; margin: 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-card-value { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.stat-card-label { font-size: 0.8125rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.stat-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.stat-icon-brown { background: var(--primary-soft); color: var(--primary); }
.stat-icon-blue { background: var(--accent-soft); color: var(--accent); }
.stat-icon-green { background: var(--success-soft); color: var(--success); }
.stat-icon-amber { background: var(--warning-soft); color: var(--warning); }
.stat-icon-slate { background: var(--border-light); color: var(--text-muted); }

.chip, .badge { display: inline-flex; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-warning { background: var(--warning-soft); color: var(--warning); }
.chip-danger { background: var(--error-soft); color: var(--error); }
.chip-info { background: var(--accent-soft); color: var(--accent); }
.chip-neutral { background: var(--border-light); color: var(--text-muted); }

.meta-label { font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); display: block; margin-bottom: 0.25rem; }
.meta-value { font-size: 0.875rem; }
.meta-grid { display: grid; gap: 1rem; }
@media (min-width: 480px) { .meta-grid { grid-template-columns: 1fr 1fr; } }
.alert { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.875rem; border: 1px solid var(--border); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--error-soft); color: var(--error); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.progress-bar { height: 4px; border-radius: 2px; background: var(--border-light); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); }
.skill-overview { margin-bottom: 1.5rem; }
.panel-head__meta { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.75rem; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-item { display: flex; min-width: 0; flex-direction: column; gap: 0.875rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); }
.skill-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
.skill-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.skill-item__title { margin: 0; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.skill-item__domain { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.75rem; }
.skill-item__count { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 700; }
.skill-people { display: flex; min-height: 1.75rem; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.skill-person { display: inline-flex; min-width: 0; align-items: center; gap: 0.375rem; color: var(--text-muted); text-decoration: none; }
.skill-person:hover { color: var(--accent); }
.skill-person__avatar { display: inline-flex; width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; }
.skill-person__avatar--fallback { background: var(--border-light); color: var(--text-muted); font-size: 0.625rem; font-weight: 700; }
.skill-person__name { max-width: 10rem; overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.skill-people__more { color: var(--text-faint); font-size: 0.75rem; }
.skill-item__link { display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; color: var(--accent); font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.skill-item__link:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .skill-grid { grid-template-columns: 1fr; }
    .skill-item:nth-child(odd) { border-right: 0; }
}
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.profile-avatar, .profile-avatar-fallback { width: 5.5rem; height: 5.5rem; border-radius: 1rem; object-fit: cover; }
.profile-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.25rem; }
.profile-avatar-link { display: block; flex-shrink: 0; border-radius: 1rem; overflow: hidden; }
.profile-avatar-link:hover .profile-avatar { outline: 3px solid var(--accent-soft); }
.profile-docs { margin-bottom: 1rem; }
.profile-docs__body { display: flex; flex-direction: column; gap: 1.25rem; }
.profile-docs__photo-link { display: block; overflow: hidden; border-radius: 0.75rem; background: var(--bg); }
.profile-docs__photo-link img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile-docs__photo-empty {
    display: grid; place-items: center; aspect-ratio: 1; border-radius: 0.75rem;
    background: var(--primary-soft); color: var(--primary); font-size: 2.25rem; font-weight: 700;
}
.profile-docs__caption { margin: 0.5rem 0 0; color: var(--text-faint); font-size: 0.75rem; word-break: break-all; }
.profile-docs__cv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.profile-docs__cv-label { margin: 0; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.profile-docs__cv-name { margin: 0.2rem 0 0; color: var(--text); font-size: 0.875rem; font-weight: 600; word-break: break-all; }
.profile-docs__frame {
    display: block; width: 100%; height: 28rem; border: 1px solid var(--border-light);
    border-radius: 0.75rem; background: #f8fafc;
}
.profile-docs__file {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem;
    border: 1px solid var(--border-light); border-radius: 0.75rem; background: var(--bg);
}
.profile-docs__file-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.65rem; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.profile-docs__file p { margin: 0; color: var(--text-muted); font-size: 0.8125rem; }
.card-elevated { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(16,24,40,0.06); }
.auth-layout { min-height: 100vh; display: grid; }
@media (min-width: 1024px) { .auth-layout { grid-template-columns: 1fr 1fr; } }
.auth-panel { display: none; background: var(--primary-soft); padding: 3rem; }
@media (min-width: 1024px) { .auth-panel { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.back-link { display: inline-flex; gap: 0.25rem; font-size: 0.875rem; color: var(--accent); text-decoration: none; margin-bottom: 1rem; }
.navbar-public {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 231, 236, 0.9);
    transition: box-shadow 0.2s;
}
.navbar-public.scrolled { box-shadow: 0 4px 24px rgba(16, 24, 40, 0.06); }
.public-shell {
    --vitrine-navy: #0b1f3a;
    --vitrine-navy-soft: #122a4a;
    --vitrine-blue: #2563eb;
    --vitrine-blue-hover: #1d4ed8;
    --vitrine-gold: #c9a227;
    --vitrine-gold-soft: #f4ead0;
    --vitrine-green: #2563eb;
    --vitrine-green-dark: #0b1f3a;
    --vitrine-green-hover: #1d4ed8;
    --vitrine-green-soft: #e8f0fe;
    --vitrine-green-muted: #d7e4fb;
    --topbar-h: 4.75rem;
}
.public-main { flex: 1; }
.public-shell { display: flex; flex-direction: column; min-height: 100vh; background: #fff; overflow-x: hidden; }
.public-shell .btn-primary {
    background: var(--vitrine-blue);
    border-color: var(--vitrine-blue);
}
.public-shell .btn-primary:hover {
    background: var(--vitrine-blue-hover);
    border-color: var(--vitrine-blue-hover);
}
.public-shell .vitrine-nav__login {
    color: var(--vitrine-green-dark);
    border-color: var(--vitrine-green);
    background: #fff;
}
.public-shell .vitrine-nav__login:hover {
    background: var(--vitrine-green-soft);
}
.vitrine-main { padding-top: var(--topbar-h); background: #fff; }

/* ── Vitrine publique ── */
.vitrine-wrap, .landing-wrap { width: min(100% - 4rem, 74rem); margin: 0 auto; padding: 0; }
@media (max-width: 640px) { .vitrine-wrap, .landing-wrap { width: calc(100% - 2.5rem); } }
.vitrine-nav {
    width: 100%; max-width: 80rem; margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    min-height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.vitrine-nav__brand {
    display: flex; align-items: center; gap: 0.625rem;
    text-decoration: none; min-width: 0; flex-shrink: 0;
}
.vitrine-nav__brand-text {
    display: none; flex-direction: column; gap: 0.0625rem; min-width: 0;
}
@media (min-width: 1100px) { .vitrine-nav__brand-text { display: flex; } }
.vitrine-nav__brand-title {
    font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--vitrine-green-dark, var(--primary)); line-height: 1.1;
}
.vitrine-nav__brand-sub {
    font-size: 0.5625rem; font-weight: 500; line-height: 1.25;
    color: #667085; max-width: 14rem;
}
.vitrine-nav__links {
    display: none; align-items: center; gap: 0;
    flex: 1; justify-content: center; min-width: 0;
}
@media (min-width: 1100px) { .vitrine-nav__links { display: flex; } }
.vitrine-nav__link {
    padding: 0.375rem 0.5rem; font-size: 0.75rem; font-weight: 600;
    color: var(--vitrine-green-dark, #344054); text-decoration: none;
    transition: color 0.15s; border-radius: 0; background: none;
    white-space: nowrap; position: relative;
}
@media (min-width: 1280px) { .vitrine-nav__link { padding: 0.375rem 0.625rem; font-size: 0.8125rem; } }
.vitrine-nav__link:hover { color: var(--vitrine-green, var(--primary)); }
.vitrine-nav__link--active { color: var(--vitrine-green, var(--primary)); }
.vitrine-nav__link--active::after {
    content: ''; position: absolute; left: 0.625rem; right: 0.625rem; bottom: -0.625rem;
    height: 2px; background: var(--vitrine-green, var(--primary)); border-radius: 1px;
}
.vitrine-nav__actions {
    display: flex; align-items: center; gap: 0.5rem;
    flex-shrink: 0;
}
.vitrine-nav__actions .btn svg { width: 1rem; height: 1rem; }
@media (max-width: 1099px) { .vitrine-nav__actions .btn { display: none; } }
.vitrine-nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 2.375rem; height: 2.375rem; padding: 0;
    border: none; border-radius: var(--radius);
    background: transparent; color: var(--text); cursor: pointer;
    transition: background 0.12s;
}
.vitrine-nav__toggle:hover { background: var(--hover); }
@media (min-width: 1100px) { .vitrine-nav__toggle { display: none; } }
.vitrine-nav__toggle svg { width: 1.25rem; height: 1.25rem; }
.vitrine-nav__mobile {
    border-top: 1px solid var(--border-light);
    background: #fff;
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}
.vitrine-nav__mobile[hidden] { display: none !important; }
.navbar-public.is-open .vitrine-nav__mobile { display: block; }
.vitrine-nav__mobile-nav {
    display: flex; flex-direction: column;
    padding: 0.25rem 0;
}
.vitrine-nav__mobile-link {
    display: block; padding: 0.75rem 0;
    font-size: 0.9375rem; font-weight: 500; color: var(--text);
    text-decoration: none; border-bottom: 1px solid var(--border-light);
    transition: color 0.12s;
}
.vitrine-nav__mobile-link:last-child { border-bottom: none; }
.vitrine-nav__mobile-link:hover { color: var(--accent); }
.vitrine-nav__mobile-actions {
    display: flex; flex-direction: column; gap: 0.625rem;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.vitrine-nav__mobile-actions .btn { width: 100%; justify-content: center; }

/* Pages publiques — candidature */
.candidature-page { padding: 2rem 0 3rem; }
.candidature-page__head { margin-bottom: 1.75rem; max-width: 40rem; }
.candidature-page__crumb { margin: 0 0 0.625rem; font-size: 0.8125rem; }
.candidature-page__crumb a {
    color: var(--text-muted); text-decoration: none; transition: color 0.12s;
}
.candidature-page__crumb a:hover { color: var(--accent); }
.candidature-page__title {
    margin: 0; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.2; color: var(--text);
}
.candidature-page__lead {
    margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.6;
    color: var(--text-muted); max-width: 36rem;
}
.candidature-form__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) { .candidature-form__grid { grid-template-columns: 1fr 18rem; gap: 1.5rem; } }
.candidature-form__main { display: flex; flex-direction: column; gap: 1rem; }
.candidature-form__media { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 640px) { .candidature-form__media { grid-template-columns: 1fr 1fr; } }
.candidature-form__media-item { display: flex; flex-direction: column; min-height: 0; }
.candidature-form__media-item .field-label { margin-bottom: 0.5rem; }
.candidature-form__media-item .dropzone { flex: 1; display: flex; flex-direction: column; }
.candidature-form__submit { display: flex; flex-wrap: wrap; gap: 0.625rem; padding-top: 0.5rem; }
.candidature-form__aside { display: flex; flex-direction: column; gap: 0.875rem; position: sticky; top: calc(var(--topbar-h) + 1rem); }
.candidature-aside-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.125rem 1.25rem;
}
.candidature-aside-card--info { background: var(--accent-soft); border-color: rgba(30, 90, 149, 0.15); }
.candidature-aside-card__title { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; }
.candidature-aside-card__text { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); }
.candidature-steps-list {
    margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.625rem;
    font-size: 0.8125rem; color: var(--text-muted); line-height: 1.45;
}
.candidature-steps-list strong { color: var(--text); font-weight: 600; }

.candidature-page .radio-list ul { gap: 0.25rem 1.25rem; }
.candidature-page .radio-list label {
    min-height: 2rem; padding: 0.25rem 0;
    border: 0; border-radius: 0; background: transparent;
}
.candidature-page .radio-list input { accent-color: var(--accent); }

.public-success {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - var(--topbar-h) - 8rem); padding: 2rem 1.25rem 3rem;
}
.public-success__card {
    width: 100%; max-width: 28rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem 1.75rem; text-align: center; box-shadow: var(--shadow-md);
}
.public-success__icon {
    width: 3.5rem; height: 3.5rem; border-radius: var(--radius-lg);
    background: var(--success-soft); color: var(--success);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.public-success__icon svg { width: 1.75rem; height: 1.75rem; }
.public-success__title { margin: 0; font-size: 1.375rem; font-weight: 600; }
.public-success__desc { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }
.public-success__steps {
    margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); text-align: left;
}
.public-success__steps-title { margin: 0 0 0.625rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
.public-success__steps ul { margin: 0; padding-left: 1.125rem; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }
.public-success__actions { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.75rem; }

/* Legacy aliases */
.hero-badge { display: inline-flex; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.hero-title-accent { color: var(--accent); }

.lang-pill { display: inline-flex; padding: 0.375rem 0.75rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.8125rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background: var(--accent-soft); color: var(--accent); }
.stats-band { background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.status-icon { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.status-icon-success { background: var(--success-soft); color: var(--success); }
.national-keyboard-bar { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.375rem 0 0.625rem; }
.national-keyboard-bar button {
    min-width: 2.25rem; min-height: 2.25rem; padding: 0.25rem 0.5rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); font-family: inherit; font-size: 0.9375rem;
    color: var(--text); cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
.national-keyboard-bar button:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.keyboard-preview { padding: 0.25rem 0; }
.keyboard-char-display { font-size: 1.125rem; font-weight: 500; }

/* Formulaires éditables */
.app-content:has(.form-page) { padding: 1rem 1rem 2rem; }
@media (min-width: 1024px) { .app-content:has(.form-page) { padding: 1.25rem 1.5rem 2rem; } }

.page-head--compact { margin-bottom: 0.875rem; }
.form-page { max-width: none; }
.form-page__grid { display: grid; gap: 0.625rem; align-items: start; }
@media (min-width: 1024px) { .form-page__grid { grid-template-columns: 1fr 19rem; gap: 0.75rem; } }
.form-page__main, .form-page__aside { display: flex; flex-direction: column; gap: 1rem; }
.form-row--sections { align-items: stretch; gap: 1rem; }
.form-row--sections > .form-section { height: 100%; }
.form-section {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
}
.form-section--chips { padding: 1rem 1.125rem 1.25rem; }
.form-section--chips .form-section__title { margin-bottom: 0.875rem; }
.form-section--admin { background: var(--primary-soft); border-color: rgba(92, 61, 30, 0.12); }
.form-section__title {
    margin: 0 0 0.625rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-faint);
}
.form-row { display: grid; gap: 0.625rem 0.75rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row--2 { grid-template-columns: 1fr; } }
.field-error { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--error); }
.field-input--textarea { min-height: 5.5rem; resize: vertical; line-height: 1.55; padding-top: 0.625rem; }
.form-page__foot {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}

.check-chips > ul,
.check-chips > div[id] {
    display: flex; flex-wrap: wrap; gap: 0.5rem 0.625rem;
    padding: 0; margin: 0; list-style: none; width: 100%;
}
.check-chips > div[id] > div,
.check-chips li { margin: 0; display: flex; }
.check-chips label {
    position: relative; display: inline-flex; align-items: center;
    padding: 0.4375rem 0.875rem; min-height: 2.125rem;
    border: 1px solid var(--border); border-radius: 999px; font-size: 0.8125rem; line-height: 1.3;
    cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; user-select: none;
    white-space: nowrap;
}
.check-chips label:hover { border-color: #c9cdd4; background: var(--hover); }
.check-chips input {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
    opacity: 0; cursor: pointer;
}
.check-chips label:has(input:checked) {
    background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 500;
}

.dropzone {
    position: relative; border: 1.5px dashed var(--border); border-radius: var(--radius-lg);
    background: var(--bg); cursor: pointer; transition: border-color 0.15s, background 0.15s; overflow: hidden;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; background: var(--surface); }
.dropzone--photo .dropzone__inner {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 0.625rem;
}
.dropzone--file .dropzone__inner {
    min-height: 6.5rem; padding: 1rem 0.75rem; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.dropzone__preview { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 2px); position: relative; z-index: 0; }
.dropzone__empty { position: relative; z-index: 0; pointer-events: none; }
.dropzone__icon { display: flex; justify-content: center; color: var(--text-faint); margin-bottom: 0.375rem; }
.dropzone__label { margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--text); }
.dropzone__hint { margin: 0.1875rem 0 0; font-size: 0.6875rem; color: var(--text-muted); }
.dropzone__file { margin: 0.375rem 0 0; font-size: 0.75rem; font-weight: 500; color: var(--accent); word-break: break-all; max-width: 100%; }
.dropzone--photo.has-file .dropzone__inner { padding: 0; }
.dropzone--photo.has-file .dropzone__preview { position: absolute; inset: 0; }

.candidature-form__media .dropzone--photo .dropzone__inner,
.candidature-form__media .dropzone--file .dropzone__inner {
    flex: 1; width: 100%; aspect-ratio: 1; min-height: 9rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1rem 0.75rem; text-align: center;
}
.candidature-form__media .dropzone--photo.has-file .dropzone__inner { padding: 0; }

/* Paramètres */
.settings-section { margin-bottom: 1.75rem; }
.settings-section__title {
    margin: 0 0 0.75rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-faint);
}
.settings-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .settings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .settings-grid { grid-template-columns: repeat(3, 1fr); } }
.settings-card {
    display: flex; align-items: center; gap: 0.875rem; padding: 1rem 1.125rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    text-decoration: none; color: inherit; transition: border-color 0.12s, box-shadow 0.12s;
}
.settings-card:hover { border-color: #c9cdd4; box-shadow: var(--shadow-sm); }
.settings-card__icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.settings-card__icon svg { width: 1.125rem; height: 1.125rem; }
.settings-card__icon--brown { background: var(--primary-soft); color: var(--primary); }
.settings-card__icon--blue { background: var(--accent-soft); color: var(--accent); }
.settings-card__body { flex: 1; min-width: 0; }
.settings-card__title { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); }
.settings-card__desc { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.settings-card__meta { display: block; margin-top: 0.375rem; font-size: 0.6875rem; color: var(--text-faint); }
.settings-card__arrow { flex-shrink: 0; color: var(--text-faint); }
.field-checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text); }
.field-checkbox input { width: 1rem; height: 1rem; accent-color: var(--primary); cursor: pointer; }
.field-hint { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--text-muted); }
.form-section__subblock { margin-top: 0.875rem; }
.form-section__subtitle {
    margin: 0 0 0.625rem; font-size: 0.8125rem; font-weight: 700; color: var(--text);
}
.radio-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-list li { margin: 0; }
.radio-list label {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem;
    padding: 0 0.875rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); cursor: pointer; font-size: 0.8125rem; font-weight: 500;
}
.radio-list input { accent-color: var(--primary); }
.table-actions-inline { display: inline-flex; align-items: center; gap: 0.125rem; }
.inline-form { display: inline; margin: 0; padding: 0; }
.inline-form button.row-action { border: none; background: transparent; padding: 0; font: inherit; }

/* Catalogue — formations & ressources */
.catalog-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.125rem; } }
@media (min-width: 1100px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

.catalog-card {
    display: flex; flex-direction: column; min-height: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    text-decoration: none; color: inherit; overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.catalog-card:hover {
    border-color: #c9cdd4; box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.catalog-card__accent { height: 3px; background: var(--accent); }
.catalog-card--status-planned .catalog-card__accent { background: var(--warning); }
.catalog-card--status-ongoing .catalog-card__accent { background: var(--success); }
.catalog-card--status-completed .catalog-card__accent { background: var(--text-faint); }
.catalog-card--status-cancelled .catalog-card__accent { background: var(--error); }
.catalog-card__accent--resource { background: var(--primary); }
.catalog-card__top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
    padding: 1rem 1.125rem 0;
}
.catalog-card__icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.catalog-card__icon svg { width: 1.125rem; height: 1.125rem; }
.catalog-card__icon--blue { background: var(--accent-soft); color: var(--accent); }
.catalog-card__icon--brown { background: var(--primary-soft); color: var(--primary); }
.catalog-card__body { padding: 0.875rem 1.125rem 0; flex: 1; }
.catalog-card__title {
    margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-card:hover .catalog-card__title { color: var(--accent); }
.catalog-card__desc {
    margin: 0.5rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-card__foot {
    padding: 0.875rem 1.125rem 1.125rem; margin-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.catalog-card__meta-item {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.75rem; color: var(--text-muted); line-height: 1.3;
}
.catalog-card__meta-item svg { flex-shrink: 0; opacity: 0.7; }
.catalog-card__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.125rem; }
.catalog-card__tags .tag { background: var(--bg); color: var(--text-muted); }

.panel--filters { margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.panel--filters .panel-filters { border-bottom: none; }

/* Annuaire profils */
.directory-summary {
    display: grid; gap: 0.875rem; margin-bottom: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) { .directory-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.directory-stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1rem 1.125rem; box-shadow: var(--shadow-sm);
}
.directory-stat__label {
    display: block; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted);
}
.directory-stat__value {
    display: block; font-size: 1.75rem; line-height: 1; font-weight: 700; letter-spacing: -0.03em;
    color: var(--text);
}
.directory-stat__hint {
    display: block; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-faint);
}
.directory-filters {
    margin-bottom: 1rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.directory-filters__head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); background: var(--surface);
}
.directory-filters__title {
    margin: 0; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em;
}
.directory-filters__meta {
    margin: 0.1875rem 0 0; font-size: 0.8125rem; color: var(--text-muted);
}
.directory-filters .panel-filters { border-bottom: none; background: var(--surface); }
.directory-filters .panel-filters__search { padding: 1rem 1.25rem; background: var(--surface); }
.directory-filters .panel-filters__grid {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    padding: 0 1.25rem 1.25rem; background: var(--surface);
}
.directory-table-panel { box-shadow: var(--shadow-sm); }
.directory-table-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); background: var(--surface);
}
.directory-table-head__title { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.directory-table-head__meta { margin: 0.1875rem 0 0; font-size: 0.8125rem; color: var(--text-muted); }
.directory-table-head__note { font-size: 0.75rem; color: var(--text-faint); white-space: nowrap; }
.profile-table .cell-user { align-items: flex-start; }
.profile-table__langs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.5rem 0 0 3.25rem; }
.profile-table__stack { display: flex; flex-direction: column; gap: 0.375rem; min-width: 13rem; }
.profile-table__skills {
    display: flex; flex-wrap: wrap; gap: 0.25rem; max-width: 22rem;
    font-size: 0.75rem; line-height: 1.35; color: var(--text-muted);
}
.profile-table__muted { font-size: 0.75rem; color: var(--text-faint); }
@media (max-width: 760px) {
    .directory-summary { grid-template-columns: 1fr; }
    .directory-filters__head, .directory-table-head { flex-direction: column; }
    .directory-table-head__note { white-space: normal; }
    .profile-table__langs { margin-left: 0; }
}

.catalog-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 3rem 1.5rem; margin-top: 0.5rem;
}
.catalog-empty__icon {
    width: 3rem; height: 3rem; border-radius: var(--radius-lg);
    background: var(--border-light); color: var(--text-faint);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.catalog-empty__icon svg { width: 1.5rem; height: 1.5rem; }
.catalog-empty__title { margin: 0; font-size: 1rem; font-weight: 600; }
.catalog-empty__desc { margin: 0.375rem 0 1rem; font-size: 0.875rem; color: var(--text-muted); max-width: 24rem; }

/* Éditeur d'annonce */
.announcement-editor__head { max-width: 72rem; }
.announcement-editor {
    display: grid; grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 1rem; max-width: 72rem; align-items: start;
}
.announcement-editor__main,
.announcement-publishing { overflow: hidden; }
.announcement-editor__section-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.125rem; border-bottom: 1px solid var(--border-light);
}
.announcement-editor__section-head h2 {
    margin: 0; color: var(--text); font-size: 0.875rem; line-height: 1.35;
    font-weight: 700; letter-spacing: 0;
}
.announcement-editor__section-head p {
    margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.75rem; line-height: 1.45;
}
.announcement-editor__fields { display: grid; gap: 1.25rem; padding: 1.25rem; }
.announcement-editor__fields .field-label { font-weight: 600; color: var(--text); }
.announcement-editor__fields textarea {
    min-height: 20rem; max-height: 36rem; resize: vertical; line-height: 1.6;
}
.announcement-editor__fields .national-keyboard-bar {
    margin: 0 0 0.5rem; padding: 0; gap: 0.3rem;
}
.announcement-editor__fields .national-keyboard-bar button {
    min-width: 2rem; min-height: 2rem; padding: 0.2rem 0.45rem;
    border-radius: 0.35rem; font-size: 0.875rem;
}
.announcement-editor__aside { position: sticky; top: calc(var(--topbar-h) + 1rem); }
.announcement-publishing__options { padding: 0 1.125rem; }
.toggle-control {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1rem 0; cursor: pointer;
}
.toggle-control + .toggle-control { border-top: 1px solid var(--border-light); }
.toggle-control__copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.toggle-control__copy strong { color: var(--text); font-size: 0.8125rem; line-height: 1.35; font-weight: 600; }
.toggle-control__copy > span { color: var(--text-muted); font-size: 0.6875rem; line-height: 1.4; }
.toggle-control__input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.toggle-control__track {
    position: relative; flex: 0 0 2.25rem; width: 2.25rem; height: 1.25rem;
    border-radius: 999px; background: #d8dee6; transition: background 0.15s ease;
}
.toggle-control__track > span {
    position: absolute; top: 0.1875rem; left: 0.1875rem; width: 0.875rem; height: 0.875rem;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,0.22);
    transition: transform 0.15s ease;
}
.toggle-control__input:checked + .toggle-control__track { background: var(--accent); }
.toggle-control__input:checked + .toggle-control__track > span { transform: translateX(1rem); }
.toggle-control__input:focus-visible + .toggle-control__track { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.announcement-editor__actions {
    display: grid; gap: 0.5rem; padding: 1rem 1.125rem 1.125rem;
    border-top: 1px solid var(--border-light);
}

/* Editeur et pilotage des formations */
.formation-editor { max-width: 78rem; }
.formation-editor__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1rem; align-items: start;
}
.formation-editor__main { display: grid; gap: 1rem; min-width: 0; }
.formation-editor__aside {
    display: grid; gap: 1rem; position: sticky;
    top: calc(var(--topbar-h) + 1rem);
}
.formation-editor .form-section { padding: 1.125rem; }
.formation-editor textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.formation-publishing__registration {
    margin-top: 1rem; padding-top: 0.25rem;
    border-top: 1px solid var(--border-light);
}
.formation-publishing__registration > .field { margin-top: 0.75rem; }
.formation-editor__actions {
    display: grid; gap: 0.5rem; padding: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.formation-editor__actions .btn { width: 100%; justify-content: center; }
.formation-summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.formation-summary article { min-width: 0; padding: 1rem 1.25rem; }
.formation-summary article + article { border-left: 1px solid var(--border-light); }
.formation-summary span {
    display: block; margin-bottom: 0.2rem; color: var(--text-muted);
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.formation-summary strong { display: block; font-size: 1.35rem; line-height: 1.25; }
.catalog-card__statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
.participation-status-form { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.participation-status-form select { width: 10.5rem; min-width: 10.5rem; }
.registration-empty {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.875rem 1rem; border: 1px dashed var(--border);
    border-radius: var(--radius); background: var(--hover);
}
.registration-empty p { margin: 0; color: var(--text-muted); font-size: 0.8125rem; }
.registration-empty form { margin: 0; flex-shrink: 0; }
.activity-table__date { white-space: nowrap; }
.activity-table__date strong, .activity-table__date span { display: block; }
.activity-table__date span { color: var(--text-muted); font-size: 0.75rem; }
.activity-table__description { min-width: 14rem; max-width: 30rem; color: var(--text-muted); }
@media (max-width: 900px) {
    .formation-editor__grid { grid-template-columns: 1fr; }
    .formation-editor__aside { position: static; }
    .formation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .formation-summary article:nth-child(3) { border-left: 0; border-top: 1px solid var(--border-light); }
    .formation-summary article:nth-child(4) { border-top: 1px solid var(--border-light); }
}
@media (max-width: 640px) {
    .page-head__actions { width: 100%; }
    .page-head__actions > .btn, .page-head__actions > form { flex: 1 1 auto; }
    .page-head__actions > form .btn { width: 100%; justify-content: center; }
    .formation-summary article { padding: 0.875rem 1rem; }
    .participation-status-form { min-width: 16rem; }
    .participation-status-form .btn { white-space: nowrap; }
    .registration-empty { align-items: flex-start; flex-direction: column; }
}
.announcement-editor__actions .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) {
    .announcement-editor { grid-template-columns: 1fr; }
    .announcement-editor__aside { position: static; }
    .announcement-editor__fields textarea { min-height: 15rem; }
}

/* Pages publiques — nav / footer */
.vitrine-wrap { max-width: 80rem; }
.navbar-public {
    background: #fff;
    border-bottom: 1px solid #e7edf4;
}
.navbar-public.scrolled { box-shadow: 0 10px 28px rgba(11, 31, 58, 0.08); }
.vitrine-nav { max-width: 88rem; min-height: var(--topbar-h); padding-inline: clamp(1rem, 3vw, 2rem); gap: 0.85rem; }
.vitrine-nav__logo { display: block; width: auto; height: 2.85rem; object-fit: contain; }
.vitrine-nav__signup { min-height: 2.35rem; padding-inline: 0.9rem; border-radius: 0.7rem; font-weight: 700; }
.public-shell .vitrine-nav__login {
    padding: 0.45rem 0.8rem; border: 1px solid #dbe3ee;
    border-radius: 0.7rem; background: #fff; color: #0b1f3a;
    text-decoration: none; font-weight: 650; font-size: 0.86rem;
}
.public-shell .vitrine-nav__login:hover { background: #f3f6fb; color: #1d4ed8; }
.vitrine-nav__toggle { border: 1px solid #dbe3ee; border-radius: 0.7rem; }
@media (min-width: 1100px) {
    .vitrine-nav__links { display: flex; }
    .vitrine-nav__toggle { display: none; }
    .vitrine-nav__actions .btn { display: inline-flex; }
}

.vitrine-footer { padding: 2.5rem 0 1.25rem; background: #071526; color: rgba(255,255,255,0.7); }
.vitrine-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; }
.vitrine-footer__brand { max-width: 28rem; }
.vitrine-footer__logo { display: block; width: 4.5rem; height: auto; background: #fff; border-radius: 0.75rem; padding: 0.35rem; }
.vitrine-footer__brand p { margin: 1rem 0 0; color: rgba(255,255,255,0.62); font-size: 0.8rem; line-height: 1.65; }
.vitrine-footer__access { display: flex; align-items: center; gap: 1.25rem; }
.vitrine-footer__access p { margin: 0; color: rgba(255,255,255,0.42); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.vitrine-footer__access a { color: rgba(255,255,255,0.82); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.vitrine-footer__access a:hover { color: #fff; }
.vitrine-footer__bottom {
    margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
}
@media (max-width: 700px) {
    .public-shell { --topbar-h: 4.25rem; }
    .vitrine-footer__top { flex-direction: column; gap: 2rem; }
    .vitrine-footer__access { flex-wrap: wrap; }
}

/* Import backoffice */
.import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
.import-card,
.import-guidance { box-shadow: var(--shadow-sm); }
.import-muted {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}
.import-form { display: grid; gap: 1rem; }
.import-upload {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 13rem;
    padding: 1.5rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.import-upload:hover {
    border-color: var(--accent);
    background: #f8fbff;
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.import-upload__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    color: var(--accent);
}
.import-upload__icon svg { width: 1.5rem; height: 1.5rem; }
.import-upload__title {
    display: block;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}
.import-upload__hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
.import-upload input[type="file"] {
    margin-top: 1rem;
    max-width: 100%;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
.import-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}
.import-check input { margin-top: 0.2rem; }
.import-check strong {
    display: block;
    color: var(--text);
    font-size: 0.875rem;
}
.import-check small {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}
.import-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.875rem;
}
.import-rules li {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}
.import-rules li:last-child { padding-bottom: 0; border-bottom: none; }
.import-rules strong {
    color: var(--text);
    font-size: 0.8125rem;
}
.import-rules span {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}
.import-result { display: grid; gap: 1rem; }
.import-metrics { margin-bottom: 0; }
.import-duplicates ul {
    margin: 0;
    padding-left: 1.125rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}
.field-error {
    color: var(--error);
    font-size: 0.8125rem;
}
@media (max-width: 980px) {
    .import-layout { grid-template-columns: 1fr; }
}

/* Public formation registration */
.registration-share { margin-top: 0; }
.registration-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.625rem; }
.registration-link__hint { margin: 0.625rem 0 0; color: var(--text-muted); font-size: 0.75rem; }
.formation-registration-main { padding-top: 4.25rem; background: #f6f8fb; }
.registration-page { min-height: calc(100vh - 4.25rem); }
.registration-hero { background: #0b1f3a; color: #fff; }
.registration-hero__inner { width: min(100% - 4rem, 68rem); margin: 0 auto; padding: 3.5rem 0 3rem; }
.registration-hero__eyebrow { margin: 0 0 0.75rem; color: #9fc0ee; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.registration-hero h1 { max-width: 52rem; margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: 0; }
.registration-hero p:not(.registration-hero__eyebrow) { max-width: 46rem; margin: 1rem 0 0; color: #dbe6f4; font-size: 1rem; line-height: 1.65; }
.registration-hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; color: #fff; font-size: 0.8125rem; }
.registration-hero__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.registration-content { width: min(100% - 4rem, 54rem); margin: 0 auto; padding: 2rem 0 4rem; }
.registration-form { display: grid; gap: 1.25rem; padding: 1.5rem; border: 1px solid #dfe4eb; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 8px 28px rgba(11, 31, 58, 0.06); }
.registration-form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.registration-form__head h2 { margin: 0.15rem 0 0; font-size: 1.25rem; }
.registration-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.registration-form__motivation textarea { resize: vertical; }
.registration-consent { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.5; cursor: pointer; }
.registration-consent input { flex: 0 0 auto; margin-top: 0.2rem; }
.registration-form > .btn { justify-self: start; }
.registration-closed, .registration-success { width: min(100% - 2rem, 42rem); margin: 7rem auto; padding: 2rem; text-align: center; }
.registration-closed__icon, .registration-success__icon { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: #e8f0fe; color: #1e5a95; }
.registration-closed__icon svg, .registration-success__icon svg { width: 1.5rem; height: 1.5rem; }
.registration-closed h2, .registration-success h1 { margin: 0; color: var(--text); font-size: 1.75rem; letter-spacing: 0; }
.registration-closed p, .registration-success > p:not(.page-head__eyebrow) { margin: 0.75rem auto 1.5rem; color: var(--text-muted); line-height: 1.65; }
.registration-member-note { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.col-check { width: 2.5rem; text-align: center; }
.col-check input { width: 1rem; height: 1rem; accent-color: var(--accent); cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.label-picker {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.label-picker ul, .label-picker > div[id] {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin: 0; padding: 0; list-style: none; width: 100%;
}
.label-chip {
    --chip-bg: var(--accent-soft);
    --chip-fg: var(--accent);
    --chip-bd: rgba(30, 90, 149, 0.22);
    --chip-fill: var(--accent);
    position: relative;
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 2.25rem; padding: 0.375rem 0.875rem 0.375rem 0.75rem;
    border: 1px solid var(--chip-bd); border-radius: 999px;
    background: #fff; color: var(--chip-fg);
    font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
    cursor: pointer; user-select: none; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.label-chip:hover { background: var(--chip-bg); border-color: var(--chip-fg); }
.label-chip:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-fg) 18%, transparent); }
.label-chip input {
    position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer;
}
.label-chip span { display: inline-flex; align-items: center; gap: 0.4rem; pointer-events: none; }
.label-chip span::before {
    content: '';
    width: 0.9rem; height: 0.9rem; border-radius: 999px; flex-shrink: 0;
    border: 1.5px solid currentColor; background: transparent;
    background-repeat: no-repeat; background-position: center; background-size: 0.55rem;
    transition: background 0.12s, border-color 0.12s;
}
.label-chip:has(input:checked) {
    background: var(--chip-fill); border-color: var(--chip-fill); color: #fff;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--chip-fill) 28%, transparent);
}
.label-chip:has(input:checked) span::before {
    border-color: rgba(255,255,255,0.9);
    background-color: rgba(255,255,255,0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
}
.label-chip--blue { --chip-bg: var(--accent-soft); --chip-fg: var(--accent); --chip-bd: rgba(30, 90, 149, 0.22); --chip-fill: var(--accent); }
.label-chip--brown { --chip-bg: var(--primary-soft); --chip-fg: var(--primary); --chip-bd: rgba(92, 61, 30, 0.2); --chip-fill: var(--primary); }
.label-chip--gold { --chip-bg: #fff7ed; --chip-fg: #9a5b16; --chip-bd: rgba(154, 91, 22, 0.22); --chip-fill: #c2781a; }
.label-chip--green { --chip-bg: var(--success-soft); --chip-fg: var(--success); --chip-bd: rgba(2, 122, 72, 0.2); --chip-fill: var(--success); }
.label-chip--red { --chip-bg: var(--error-soft); --chip-fg: var(--error); --chip-bd: rgba(180, 35, 24, 0.2); --chip-fill: var(--error); }
.label-chip--gray { --chip-bg: var(--border-light); --chip-fg: var(--text-muted); --chip-bd: #d0d5dd; --chip-fill: #667085; }
.label-picker--static { pointer-events: none; }
.label-editor { display: grid; gap: 0.875rem; }
.label-editor .btn { justify-self: start; }

.bulk-panel {
    display: grid; gap: 1rem;
    padding: 1.125rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}
.bulk-panel__head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1rem;
}
.bulk-panel__kicker {
    margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-faint);
}
.bulk-panel__title { margin: 0.2rem 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.bulk-panel__select-all {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8125rem; color: var(--text-muted); cursor: pointer;
}
.bulk-panel__select-all input { accent-color: var(--accent); }
.bulk-panel__block {
    display: grid; gap: 0.625rem;
    padding: 0.875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow-sm);
}
.bulk-panel__block-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.bulk-panel__link { font-size: 0.75rem; }
.bulk-panel__empty { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }
.bulk-panel__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bulk-panel__block--split {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1rem;
}
.bulk-panel__block--split > div { flex: 1 1 16rem; display: grid; gap: 0.5rem; }
.bulk-panel__select { width: 100%; max-width: 28rem; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scope-chip {
    position: relative; display: inline-flex; align-items: center;
    min-height: 2.25rem; padding: 0.35rem 0.85rem;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--bg); color: var(--text-muted);
    font-size: 0.8125rem; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.scope-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.scope-chip span { pointer-events: none; }
.scope-chip strong { color: var(--text); font-variant-numeric: tabular-nums; }
.scope-chip:hover { border-color: #c9cdd4; background: #fff; }
.scope-chip:has(input:checked) {
    background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600;
}
.scope-chip:has(input:checked) strong { color: var(--accent); }
.directory-bulk:not(:has(input[name="label_ids"]:checked)) .bulk-panel__actions .btn {
    opacity: 0.45; pointer-events: none;
}
.directory-bulk { margin-bottom: 1.5rem; }
@media (max-width: 900px) {
    .bulk-panel__head, .bulk-panel__block--split { flex-direction: column; align-items: stretch; }
    .bulk-panel__select { max-width: none; }
}
@media (max-width: 700px) {
    .registration-hero__inner, .registration-content { width: calc(100% - 2.5rem); }
    .registration-link { grid-template-columns: 1fr 1fr; }
    .registration-link input { grid-column: 1 / -1; }
    .registration-form__grid { grid-template-columns: 1fr; }
    .registration-form__head { flex-direction: column; }
    .registration-hero__inner { padding: 2.5rem 0; }
}

/* QCM formations */
.quiz-feed-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.quiz-feed-item__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; flex-shrink: 0; }
.quiz-question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.quiz-question-card {
    padding: 1.125rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow-sm);
}
.quiz-question-card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.quiz-question-card__index {
    margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-faint);
}
.quiz-question-card__title { margin: 0.25rem 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.quiz-question-card__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.quiz-question-card__hint { margin: 0.75rem 0 0; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.5; }
.quiz-choice-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.375rem; }
.quiz-choice-list li {
    display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
    padding: 0.5rem 0.75rem; border-radius: var(--radius); background: var(--bg);
    border: 1px solid transparent; font-size: 0.8125rem;
}
.quiz-choice-list li.is-correct { background: var(--success-soft); border-color: rgba(2, 122, 72, 0.18); color: var(--success); }
.quiz-choice-list li.is-selected:not(.is-correct) { background: var(--error-soft); border-color: rgba(180, 35, 24, 0.18); color: var(--error); }
.quiz-choice-list li em { font-style: normal; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.quiz-choice-editor { display: grid; gap: 0.5rem; }
.quiz-choice-editor__row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.625rem; align-items: center;
}
.quiz-choice-editor__correct, .quiz-choice-editor__delete {
    display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
}
.quiz-take { max-width: 42rem; }
.quiz-take__index {
    margin: 0 0 0.35rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-faint);
}
.quiz-take__title { margin: 0 0 0.875rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.quiz-take__choices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.quiz-take__choices label, .quiz-take__choice {
    display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.75rem 0.875rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    cursor: pointer; font-size: 0.875rem; line-height: 1.4;
}
.quiz-take__choices label:hover, .quiz-take__choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-take__choices input { margin-top: 0.15rem; accent-color: var(--accent); }
@media (max-width: 700px) {
    .quiz-question-card__head, .quiz-feed-item, .quiz-choice-editor__row { flex-direction: column; grid-template-columns: 1fr; align-items: stretch; }
}

/* Google Forms–style QCM builder */
.gf-builder { position: relative; max-width: 52rem; margin: 0 auto 3rem; padding-bottom: 4rem; }
.gf-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.75rem 1rem; margin-bottom: 1.25rem; position: sticky; top: calc(var(--topbar-h) + 0.5rem);
    z-index: 20; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.gf-toolbar__left { display: grid; gap: 0.35rem; min-width: 0; }
.gf-toolbar__status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.gf-toolbar__meta { font-size: 0.75rem; color: var(--text-muted); }
.gf-toolbar__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.gf-canvas { display: grid; gap: 0.875rem; }
.gf-hero-card, .gf-question {
    position: relative; background: #fff; border: 1px solid var(--border);
    border-radius: 0.75rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.gf-hero-card__accent, .gf-question__accent {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0.35rem; background: var(--accent);
    opacity: 0; transition: opacity 0.15s;
}
.gf-hero-card__accent { opacity: 1; background: linear-gradient(180deg, var(--accent), #0b1f3a); }
.gf-question.is-active { border-color: rgba(30, 90, 149, 0.35); box-shadow: 0 8px 28px rgba(11, 31, 58, 0.08); }
.gf-question.is-active .gf-question__accent { opacity: 1; }
.gf-hero-card__form { display: grid; gap: 0.75rem; padding: 1.25rem 1.25rem 1rem 1.5rem; }
.gf-hero-card__title {
    width: 100%; border: 0; border-bottom: 1px solid var(--border-light); padding: 0.25rem 0 0.5rem;
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; outline: none; background: transparent;
}
.gf-hero-card__title:focus { border-bottom-color: var(--accent); }
.gf-hero-card__desc {
    width: 100%; border: 0; border-bottom: 1px solid var(--border-light); padding: 0.35rem 0;
    font-size: 0.9375rem; color: var(--text-muted); resize: none; outline: none; background: transparent; line-height: 1.5;
}
.gf-hero-card__desc:focus { border-bottom-color: var(--accent); color: var(--text); }
.gf-hero-card__foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; padding-top: 0.25rem; }
.gf-publish-inline { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--text-muted); }
.gf-question { padding: 0; }
.gf-question__handle {
    position: absolute; left: 50%; top: 0.35rem; transform: translateX(-50%);
    width: 2.5rem; height: 1rem; border: 0; background: transparent; cursor: grab; padding: 0;
    display: grid; gap: 3px; align-content: center; justify-items: center; opacity: 0.35;
}
.gf-question__handle:active { cursor: grabbing; }
.gf-question__handle span {
    display: block; width: 1.25rem; height: 2px; border-radius: 99px; background: #98a2b3;
}
.gf-question:hover .gf-question__handle, .gf-question.is-active .gf-question__handle { opacity: 0.8; }
.gf-question__body { padding: 1.5rem 1.25rem 0.875rem; }
.gf-question__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; }
.gf-question__title {
    width: 100%; border: 0; border-bottom: 1px solid transparent; padding: 0.35rem 0.25rem;
    font-size: 1.0625rem; font-weight: 600; line-height: 1.4; resize: none; outline: none; background: #f8fafc;
    border-radius: 0.4rem;
}
.gf-question.is-active .gf-question__title, .gf-question__title:focus {
    background: #fff; border-bottom-color: var(--accent);
}
.gf-pill {
    display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.75rem;
    border: 1px solid var(--border); border-radius: 999px; font-size: 0.75rem; color: var(--text-muted);
    background: var(--bg); white-space: nowrap;
}
.gf-type { flex: 0 0 auto; }
.gf-type__select {
    min-height: 2.25rem; padding: 0.35rem 0.75rem; border: 1px solid var(--border);
    border-radius: 999px; background: var(--bg); color: var(--text); font-size: 0.8125rem; font-weight: 600;
    outline: none; cursor: pointer;
}
.gf-type__select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gf-type-hint { margin: 0.65rem 0 0; font-size: 0.75rem; color: var(--text-faint); }
.gf-options { display: grid; gap: 0.35rem; margin-top: 1rem; }
.gf-option {
    display: grid; grid-template-columns: 1.25rem 1.5rem minmax(0, 1fr) 1.75rem;
    gap: 0.35rem; align-items: center; padding: 0.2rem 0;
}
.gf-option__handle {
    border: 0; background: transparent; color: #c0c6d0; cursor: grab; font-size: 0.7rem;
    letter-spacing: -0.12em; padding: 0; opacity: 0; transition: opacity 0.12s;
}
.gf-question.is-active .gf-option__handle, .gf-option:hover .gf-option__handle { opacity: 1; }
.gf-option__correct { display: grid; place-items: center; cursor: pointer; position: relative; }
.gf-option__correct input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.gf-option__radio {
    width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid #c9cdd4; background: #fff;
}
.gf-option__box {
    width: 1.05rem; height: 1.05rem; border-radius: 0.25rem; border: 2px solid #c9cdd4; background: #fff;
}
.gf-option__correct input:checked + .gf-option__radio {
    border-color: var(--success); box-shadow: inset 0 0 0 3px var(--success);
}
.gf-option__correct input:checked + .gf-option__box {
    border-color: var(--success); background: var(--success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 0.7rem;
}
.gf-option__input {
    width: 100%; border: 0; border-bottom: 1px solid transparent; padding: 0.45rem 0.25rem;
    font-size: 0.875rem; outline: none; background: transparent;
}
.gf-option__input:focus { border-bottom-color: var(--border); }
.gf-option__remove {
    border: 0; background: transparent; color: var(--text-faint); font-size: 1.25rem; line-height: 1;
    cursor: pointer; border-radius: var(--radius); opacity: 0;
}
.gf-question.is-active .gf-option__remove, .gf-option:hover .gf-option__remove { opacity: 1; }
.gf-option__remove:hover { color: var(--error); background: var(--error-soft); }
.gf-add-option {
    margin-top: 0.35rem; border: 0; background: transparent; color: var(--accent);
    font-size: 0.8125rem; font-weight: 600; cursor: pointer; padding: 0.35rem 0.25rem; text-align: left;
}
.gf-add-option:hover { text-decoration: underline; }
.gf-explain { margin-top: 0.75rem; border-top: 1px solid var(--border-light); padding-top: 0.5rem; }
.gf-explain summary {
    cursor: pointer; font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
    list-style: none;
}
.gf-explain summary::-webkit-details-marker { display: none; }
.gf-explain__input {
    width: 100%; margin-top: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.5rem 0.65rem; font-size: 0.8125rem; resize: vertical; min-height: 2.75rem;
}
.gf-question__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem;
    margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light);
}
.gf-question__tools { display: flex; gap: 0.25rem; margin-right: auto; }
.gf-icon-btn {
    display: inline-grid; place-items: center; width: 2.125rem; height: 2.125rem;
    border: 0; border-radius: var(--radius); background: transparent; color: var(--text-muted); cursor: pointer;
}
.gf-icon-btn:hover { background: var(--bg); color: var(--text); }
.gf-icon-btn--danger:hover { background: var(--error-soft); color: var(--error); }
.gf-points {
    display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted); padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: 999px;
    background: var(--bg);
}
.gf-points input {
    width: 3rem; border: 0; background: transparent; text-align: center; font-weight: 700;
    color: var(--text); outline: none;
}
.gf-points--inline { background: #fff; }
.gf-save-state { font-size: 0.6875rem; font-weight: 600; color: var(--text-faint); min-width: 5.5rem; text-align: right; }
.gf-save-state.is-ok { color: var(--success); }
.gf-save-state.is-error { color: var(--error); }
.gf-fab {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; min-height: 3rem; margin-top: 0.25rem; border: 1.5px dashed #c9cdd4;
    border-radius: 0.75rem; background: #fff; color: var(--accent); font-weight: 600; font-size: 0.875rem;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.gf-fab:hover { border-color: var(--accent); background: var(--accent-soft); }
.gf-empty {
    text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed var(--border);
    border-radius: 0.75rem; background: #fff;
}
.gf-empty h2 { margin: 0; font-size: 1.125rem; }
.gf-empty p { margin: 0.5rem auto 0; max-width: 28rem; color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.gf-builder__foot { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.gf-rail {
    position: fixed; right: max(1rem, calc((100vw - 52rem) / 2 - 3.5rem)); top: 50%;
    transform: translateY(-50%); display: none; flex-direction: column; gap: 0.35rem;
    padding: 0.5rem; border: 1px solid var(--border); border-radius: 999px; background: #fff;
    box-shadow: var(--shadow-md); z-index: 30;
}
.gf-rail__btn {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent); cursor: pointer;
}
.gf-rail__btn:hover { background: var(--accent); color: #fff; }
.gf-question.is-ghost, .gf-option.is-ghost { opacity: 0.45; }
.quiz-take__points {
    display: inline-flex; margin-left: 0.5rem; padding: 0.1rem 0.45rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); font-size: 0.6875rem; font-weight: 700;
}
@media (min-width: 1100px) {
    .gf-rail { display: flex; }
}
@media (max-width: 700px) {
    .gf-question__top { grid-template-columns: 1fr; }
    .gf-toolbar { position: static; }
}
