.admin-space-panel {
            width: min(820px, 100%);
        }

        .admin-choice-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
            margin: 1.35rem 0;
        }

        .admin-choice-card {
            display: flex;
            min-height: 220px;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.2rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(250, 204, 188, 0.24), rgba(255, 255, 255, 0.88));
            box-shadow: 0 16px 30px rgba(48, 36, 58, 0.08);
        }

        .admin-choice-card h2 {
            margin: 0 0 0.45rem;
            color: var(--aubergine);
            font-size: 1.15rem;
        }

        .admin-choice-card p {
            margin: 0;
            color: rgba(70, 65, 85, 0.82);
            line-height: 1.5;
        }

.overview-panel {
            width: min(1120px, 100%);
            overflow: visible;
        }

        .status-line {
            margin: 0 0 1rem;
            color: rgba(70, 65, 85, 0.82);
            line-height: 1.55;
        }

        .toolbar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 1rem;
            align-items: end;
            margin: 1.2rem 0;
        }

        .admin-tabs {
            position: sticky;
            top: 0.5rem;
            z-index: 30;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.45rem;
            margin: 0 -1.1rem 1.2rem;
            padding: 0.75rem 1.1rem;
            border-radius: 0 0 16px 16px;
            border-bottom: 1px solid rgba(48, 36, 58, 0.12);
            background: rgba(250, 247, 251, 0.96);
            backdrop-filter: blur(12px);
        }

        .admin-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 0.55rem 0.95rem;
            border: 1px solid rgba(48, 36, 58, 0.14);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.72);
            color: var(--prune-gris);
            font-size: 0.86rem;
            font-weight: 800;
            text-decoration: none;
        }

        .admin-tab.is-active {
            border-color: var(--aubergine);
            background: var(--aubergine);
            color: #fff;
        }

        .admin-refresh-tab {
            margin-left: auto;
            border-color: rgba(219, 141, 119, 0.42);
            background: rgba(250, 204, 188, 0.34);
            color: var(--aubergine);
        }

        .admin-filter-panel {
            padding: 1rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 14px;
            background: rgba(250, 204, 188, 0.12);
        }

        .dossier-search-panel {
            display: grid;
            grid-template-columns: minmax(240px, 1fr) auto;
            gap: 1rem;
            align-items: end;
            margin: 1.2rem 0;
            padding: 1rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 14px;
            background: rgba(216, 227, 229, 0.2);
        }

        .filter-actions {
            display: flex;
            align-items: end;
            min-height: 100%;
        }

        select {
            width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(70, 65, 85, 0.2);
            padding: 0.68rem 0.72rem;
            font: inherit;
            background: #faf7fb;
            color: var(--prune-gris);
        }

        .report-grid {
            display: grid;
            gap: 1rem;
        }

        .metric,
        .report-card {
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 16px;
            padding: 1.1rem;
            background: rgba(255, 255, 255, 0.62);
        }

        .metric {
            background: rgba(250, 204, 188, 0.18);
        }

        .metric-label {
            margin: 0 0 0.35rem;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 700;
            color: rgba(70, 65, 85, 0.78);
        }

        .metric-value {
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: clamp(2.4rem, 8vw, 4.2rem);
            line-height: 1;
            color: var(--aubergine);
        }

        .report-card h2 {
            margin: 0 0 1rem;
            font-family: "Playfair Display", serif;
            color: var(--aubergine);
            font-size: 1.25rem;
        }

        .report-card-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .report-card-head h2 {
            margin: 0;
        }

        .result-count {
            color: rgba(70, 65, 85, 0.72);
            font-size: 0.86rem;
            font-weight: 700;
        }

        .dossier-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .dossier-main-card,
        .dossier-wide-card {
            grid-column: 1 / -1;
        }

        .detail-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem 1rem;
            margin: 0;
        }

        .detail-list div {
            min-width: 0;
        }

        .detail-list .detail-list-wide {
            grid-column: 1 / -1;
        }

        .detail-list dt {
            margin: 0 0 0.18rem;
            color: rgba(70, 65, 85, 0.68);
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .detail-list dd {
            margin: 0;
            color: var(--aubergine);
            font-weight: 650;
            overflow-wrap: anywhere;
        }

        .status-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin-bottom: 1rem;
        }

        .dossier-list {
            display: grid;
            gap: 0.75rem;
        }

        .dossier-list-item {
            display: grid;
            gap: 0.25rem;
            padding: 0.75rem;
            border: 1px solid rgba(48, 36, 58, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.58);
        }

        .dossier-list-item strong {
            color: var(--aubergine);
        }

        .dossier-list-item small {
            color: rgba(70, 65, 85, 0.74);
            overflow-wrap: anywhere;
        }

        .dossier-comment {
            margin: 0;
            padding: 0.85rem;
            min-height: 5.2rem;
            border: 1px solid rgba(48, 36, 58, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.58);
            color: var(--aubergine);
            font-weight: 650;
            line-height: 1.55;
            overflow-wrap: anywhere;
        }

        .bar-list {
            display: grid;
            gap: 0.7rem;
        }

        .bar-row {
            display: grid;
            grid-template-columns: minmax(130px, 240px) 1fr 48px;
            gap: 0.8rem;
            align-items: center;
        }

        .bar-label,
        .course-title {
            font-weight: 700;
            color: var(--aubergine);
        }

        .bar-track,
        .gauge-track {
            position: relative;
            height: 14px;
            border-radius: 999px;
            background: rgba(48, 36, 58, 0.12);
            overflow: hidden;
        }

        .bar-fill,
        .gauge-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--saumon-clair), var(--saumon));
        }

        .bar-total {
            text-align: right;
            font-weight: 700;
        }

        .age-chart {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(34px, 1fr);
            gap: 0.55rem;
            align-items: end;
            min-height: 240px;
            padding-top: 0.8rem;
        }

        .age-bar {
            display: grid;
            grid-template-rows: 170px 42px;
            gap: 0.5rem;
            text-align: center;
            align-items: end;
        }

        .age-column {
            position: relative;
            align-self: end;
            justify-self: center;
            width: min(100%, 42px);
            min-height: 4px;
            border-radius: 8px 8px 3px 3px;
            background: linear-gradient(180deg, var(--saumon), var(--saumon-clair));
        }

        .age-total {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.78rem;
            font-weight: 700;
            line-height: 1;
        }

        .age-total.inside {
            top: 0.45rem;
            color: var(--aubergine);
        }

        .age-total.outside {
            top: -1.15rem;
            color: var(--prune-gris);
        }

        .age-label {
            align-self: start;
            justify-self: center;
            transform: rotate(-42deg);
            transform-origin: center top;
            white-space: nowrap;
            line-height: 1;
        }

        .age-label {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--prune-gris);
        }

        .course-list {
            display: grid;
            gap: 0.85rem;
        }

        .student-table {
            width: 100%;
            border-collapse: collapse;
        }

        .student-table th,
        .student-table td {
            padding: 0.72rem 0.65rem;
            border-bottom: 1px solid rgba(48, 36, 58, 0.1);
            text-align: left;
            vertical-align: top;
        }

        .student-table th {
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(70, 65, 85, 0.74);
        }

        .admin-student-summary-row {
            cursor: pointer;
            transition: background 0.18s ease, box-shadow 0.18s ease;
        }

        .admin-student-summary-row:hover,
        .admin-student-summary-row:focus-visible,
        .admin-student-summary-row.is-expanded {
            background: rgba(250, 204, 188, 0.18);
            outline: none;
        }

        .admin-student-summary-row td:first-child strong::before {
            content: "+";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.25rem;
            height: 1.25rem;
            margin-right: 0.4rem;
            border-radius: 50%;
            background: rgba(48, 36, 58, 0.1);
            color: var(--aubergine);
            font-weight: 800;
        }

        .admin-student-summary-row.is-expanded td:first-child strong::before {
            content: "-";
        }

        .admin-student-detail-row > td {
            padding: 0;
            background: rgba(255, 255, 255, 0.5);
        }

        .admin-student-detail-panel {
            margin: 0.2rem 0 1rem;
            padding: 1rem;
            border: 1px solid rgba(48, 36, 58, 0.12);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.74);
        }

        .admin-detail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.85rem;
        }

        .admin-detail-head h3 {
            margin: 0;
            font-family: "Playfair Display", serif;
            color: var(--aubergine);
        }

        .admin-detail-head .btn-small {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .admin-course-detail-table {
            width: 100%;
            border-collapse: collapse;
        }

        .admin-course-detail-table th,
        .admin-course-detail-table td {
            padding: 0.62rem 0.55rem;
            border-bottom: 1px solid rgba(48, 36, 58, 0.1);
            text-align: left;
            vertical-align: top;
        }

        .admin-course-detail-table th {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: rgba(70, 65, 85, 0.74);
        }

        .document-link {
            font-weight: 700;
            color: var(--aubergine);
        }

        .course-row {
            position: relative;
            display: grid;
            grid-template-columns: minmax(230px, 1.2fr) minmax(260px, 1fr);
            gap: 1rem;
            align-items: center;
            border: 1px solid rgba(48, 36, 58, 0.1);
            border-radius: 14px;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.64);
        }

        .course-details {
            position: relative;
            display: block;
        }

        .course-summary {
            display: grid;
            grid-template-columns: minmax(230px, 1.2fr) minmax(260px, 1fr);
            gap: 1rem;
            align-items: center;
            cursor: pointer;
            list-style: none;
        }

        .course-summary::-webkit-details-marker {
            display: none;
        }

        .course-summary::after {
            content: "+";
            position: absolute;
            right: 1rem;
            top: 0.85rem;
            font-weight: 800;
            color: var(--aubergine);
        }

        .course-details[open] .course-summary::after {
            content: "-";
        }

        .course-meta {
            margin: 0.3rem 0 0;
            font-size: 0.88rem;
            color: rgba(70, 65, 85, 0.78);
        }

        .gauge-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.45rem;
            font-weight: 700;
        }

        .status-pill {
            display: inline-block;
            border-radius: 999px;
            padding: 0.18rem 0.55rem;
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .status-pill.is-ok {
            background: rgba(79, 159, 104, 0.16);
            color: #25623d;
        }

        .status-pill.is-alert {
            background: rgba(217, 92, 92, 0.14);
            color: #8b3434;
        }

        .status-pill.is-info {
            background: rgba(79, 143, 202, 0.16);
            color: #285d8f;
        }

        .status-pill.is-progress {
            background: rgba(74, 175, 156, 0.16);
            color: #247466;
        }

        .is-low .status-pill,
        .is-low .gauge-fill {
            background: #d95c5c;
            color: #fff;
        }

        .is-open .status-pill,
        .is-open .gauge-fill {
            background: #4f8fca;
            color: #fff;
        }

        .is-full .status-pill,
        .is-full .gauge-fill {
            background: #4f9f68;
            color: #fff;
        }

        .gauge-track {
            overflow: visible;
        }

        .gauge-marker {
            position: absolute;
            top: -5px;
            width: 2px;
            height: 24px;
            background: var(--aubergine);
        }

        .gauge-marker span {
            position: absolute;
            top: 26px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.68rem;
            white-space: nowrap;
            color: rgba(48, 36, 58, 0.7);
        }

        .course-student-list {
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px solid rgba(48, 36, 58, 0.1);
        }

        .course-student-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            gap: 0.7rem;
            align-items: center;
            padding: 0.55rem 0;
            border-bottom: 1px solid rgba(48, 36, 58, 0.08);
        }

        .course-student-row:last-child {
            border-bottom: 0;
        }

        .course-student-name {
            font-weight: 800;
            color: var(--aubergine);
        }

        .course-student-name span {
            margin-left: 0.45rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: rgba(70, 65, 85, 0.72);
        }

        .status-toggle {
            appearance: none;
            border: 0;
            border-radius: 999px;
            padding: 0.34rem 0.65rem;
            font: inherit;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
        }

        .status-toggle.is-muted {
            background: rgba(70, 65, 85, 0.16);
            color: rgba(70, 65, 85, 0.68);
        }

        .status-toggle.is-confirmed.is-active {
            background: #4f9f68;
            color: #fff;
        }

        .status-toggle.is-waiting.is-active {
            background: #4f8fca;
            color: #fff;
        }

        .status-toggle:disabled {
            cursor: default;
        }

        .course-refresh-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.85rem;
        }

        .course-student-list.is-dirty .btn-small {
            box-shadow: 0 0 0 3px rgba(79, 143, 202, 0.16);
        }

        .empty-state {
            margin: 0;
            color: rgba(70, 65, 85, 0.75);
        }

        .admin-message {
            border-radius: 10px;
            padding: 0.75rem 0.9rem;
            margin: 0 0 1rem;
            font-weight: 700;
        }

        .admin-message.is-success {
            color: #25623d;
            background: rgba(79, 159, 104, 0.14);
        }

        .admin-message.is-error {
            color: #8b3434;
            background: rgba(217, 92, 92, 0.14);
        }

        .waiting-list {
            margin-top: 0.9rem;
            padding-top: 0.85rem;
            border-top: 1px solid rgba(48, 36, 58, 0.1);
        }

        .waiting-list-title {
            margin: 0 0 0.55rem;
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 700;
            color: rgba(70, 65, 85, 0.74);
        }

        .waiting-row {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) auto;
            gap: 0.7rem;
            align-items: center;
            padding: 0.48rem 0;
            border-bottom: 1px solid rgba(48, 36, 58, 0.08);
        }

        .waiting-row:last-child {
            border-bottom: 0;
        }

        .waiting-position {
            font-weight: 700;
            color: var(--aubergine);
        }

        .waiting-name {
            font-weight: 700;
            color: var(--aubergine);
        }

        .waiting-contact {
            display: block;
            font-size: 0.78rem;
            color: rgba(70, 65, 85, 0.78);
        }

        .inline-form {
            margin: 0;
        }

        .btn-small {
            appearance: none;
            border: 1px solid var(--aubergine);
            border-radius: 999px;
            background: var(--aubergine);
            color: #fff;
            font: inherit;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 0.42rem 0.72rem;
            cursor: pointer;
        }

        .btn-small:disabled {
            cursor: not-allowed;
            opacity: 0.48;
        }

        @media (max-width: 760px) {
            .admin-choice-list,
            .toolbar,
            .dossier-search-panel,
            .dossier-grid,
            .detail-list,
            .bar-row,
            .course-row,
            .course-summary,
            .course-student-row {
                grid-template-columns: 1fr;
            }

            .bar-total {
                text-align: left;
            }

            .admin-refresh-tab {
                margin-left: 0;
            }

            .student-table,
            .student-table tbody,
            .student-table tr,
            .student-table td,
            .admin-course-detail-table,
            .admin-course-detail-table tbody,
            .admin-course-detail-table tr,
            .admin-course-detail-table td {
                display: block;
            }

            .student-table thead,
            .admin-course-detail-table thead {
                display: none;
            }

            .student-table tr,
            .admin-course-detail-table tr {
                padding: 0.8rem 0;
                border-bottom: 1px solid rgba(48, 36, 58, 0.1);
            }

            .student-table td,
            .admin-course-detail-table td {
                border-bottom: 0;
                padding: 0.24rem 0;
            }

            .student-table td::before,
            .admin-course-detail-table td::before {
                content: attr(data-label) " : ";
                font-weight: 700;
                color: var(--aubergine);
            }

            .admin-student-detail-row > td::before {
                content: "";
            }

            .admin-detail-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .waiting-row {
                grid-template-columns: 1fr;
                gap: 0.35rem;
            }
        }
