/* ── Nav items (sidebar + bottom nav) ───────────────────── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1px 8px;
    padding: 8px 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    position: relative;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.nav-item:hover {
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
}

.nav-item.active {
    color: var(--color-navy);
    background: #EEF2F9;
    font-weight: 600;
}

/* Barre d'accent verticale de l'item actif (repère au sein de la sidebar) */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 99px;
    background: var(--color-navy);
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

/* Entrées admin-only : repère visuel discret (rouge atténué) */
.nav-item.nav-admin {
    color: color-mix(in srgb, var(--color-error) 65%, var(--color-text-muted));
}

.nav-section-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    padding: 16px 20px 6px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    border-color: var(--color-navy-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--color-text);
}

.tool-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: #EEF2F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.tool-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
}

.tool-card-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), opacity var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; opacity: 0.9; }

.btn-primary {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.btn-primary:hover {
    background: var(--color-navy-dark);
    border-color: var(--color-navy-dark);
    opacity: 1;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    opacity: 1;
}

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

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

.btn-danger {
    background: var(--color-error);
    color: #fff;
    border-color: var(--color-error);
}

.btn-sm {
    padding: 5px 12px;
    font-size: var(--font-size-xs);
}

.btn-full { width: 100%; }

/* ── Bouton de signalement global (layout_open.php) ─────────── */
.report-btn {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 150;
}

@media (max-width: 768px) {
    .report-btn {
        top: calc(var(--topbar-height) + 8px);
        right: var(--space-3, 12px);
    }
    .report-btn-label { display: none; }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    font-size: var(--font-size-base);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    margin-bottom: 16px;
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid #FECACA;
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #BBF7D0;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FCD34D;
}

/* ── Login page ──────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: #EEF2F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.login-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.login-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ── Tables ──────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}

thead {
    background: var(--color-bg);
}

th {
    padding: 10px 16px;
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
}

tr:last-child td { border-bottom: none; }

/* ── Grille croisée compacte (ex. droits d'accès par page) ──
   Colonnes étroites à en-tête pivoté verticalement (texte + case
   « tout/rien »), 1ère colonne figée au scroll horizontal. Permet
   d'afficher un grand nombre de colonnes booléennes sans scroll
   horizontal aux paliers bureau/tablette. */
.access-grid thead th:first-child,
.access-grid tbody td:first-child {
    position: sticky;
    left: 0;
    width: 1%;
    background: var(--color-surface);
    white-space: nowrap;
    z-index: 1;
}

.access-grid td {
    text-align: center;
}

.pa-col-head {
    width: 34px;
    min-width: 34px;
    padding: 8px 4px 10px;
    vertical-align: bottom;
}

.pa-col-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pa-col-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-2xs);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    color: var(--color-text-muted);
}

.page-access-toggle-all,
.page-access-checkbox {
    cursor: pointer;
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: var(--fs-label);
    font-weight: 600;
}

.badge-navy {
    background: #EEF2F9;
    color: var(--color-navy);
}

.badge-gray {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.badge-new {
    background: var(--color-error, #DC2626);
    color: #fff;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
}
.card-title-link:hover {
    text-decoration: underline;
    color: var(--color-navy);
}

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-greeting {
    margin-bottom: 24px;
}

/* Guidelines + articles côte à côte */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 28px;
}
@media (max-width: 768px) {
    .dashboard-top-row { grid-template-columns: 1fr; }
}

.section-title {
    font-size: var(--fs-section-title);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.section-title-link { text-decoration: none; color: inherit; display: block; }
.section-title--split { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.changelog-date { font-size: var(--font-size-xs); font-weight: 400; color: var(--color-text-muted); white-space: nowrap; }

/* Badge société (favicon + libellé) dans les listes récentes */
.recent-society { display: inline-flex; align-items: center; gap: 4px; }
.recent-society img { object-fit: contain; border-radius: 2px; vertical-align: middle; }

/* Titre de section encadrée dans les outils (référence : consultation) */
.cpa-section-title {
    font-size: var(--font-size-2xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--color-text-muted); margin: 0;
}

/* Bloc sources bibliographiques en pied de page (référence : Obésité) */
.tool-sources {
    color: var(--color-text-muted);
    font-size: var(--fs-source);
    line-height: 1.5;
    margin-top: 32px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}
.tool-sources ul { margin: 4px 0 0; padding-left: 18px; }
.tool-sources li { margin-bottom: 2px; }

/* Recent guidelines list */
.recent-list { display: flex; flex-direction: column; }
.recent-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.recent-item:last-child { border-bottom: none; }
.recent-main { min-width: 0; }
.recent-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    text-align: justify;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.changelog-desc {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 4px;
    text-align: justify;
    line-height: 1.5;
}
.recent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}
.recent-link {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
}
.section-footer-link {
    display: inline-block;
    margin-top: 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
}
.empty-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    padding: 8px 0;
}

/* Tool card disabled (à venir) */
.tool-card.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* ── Mode sombre — overrides couleurs en dur ─────────────── */
/* Fonds clairs #EEF2F9 (nav actif, icônes, badges, logo login) → bleu-nuit */
:root[data-theme="dark"] .nav-item.active,
:root[data-theme="dark"] .tool-card-icon,
:root[data-theme="dark"] .stat-icon,
:root[data-theme="dark"] .badge-navy,
:root[data-theme="dark"] .login-logo-wrap {
    background: #243049;
}
:root[data-theme="dark"] .alert-error {
    border-color: #7F1D1D;
}
:root[data-theme="dark"] .alert-success {
    border-color: #14532D;
}
:root[data-theme="dark"] .alert-warning {
    background: #3A2E12;
    color: #FBBF24;
    border-color: #92720E;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-item.active,
    :root:not([data-theme="light"]) .tool-card-icon,
    :root:not([data-theme="light"]) .stat-icon,
    :root:not([data-theme="light"]) .badge-navy,
    :root:not([data-theme="light"]) .login-logo-wrap {
        background: #243049;
    }
    :root:not([data-theme="light"]) .alert-error {
        border-color: #7F1D1D;
    }
    :root:not([data-theme="light"]) .alert-success {
        border-color: #14532D;
    }
    :root:not([data-theme="light"]) .alert-warning {
        background: #3A2E12;
        color: #FBBF24;
        border-color: #92720E;
    }
}

/* ── Theme toggle (pilulier segmenté Auto/Clair/Sombre) ──── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 8px 20px 0;
    padding: 3px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 99px;
}

.theme-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    border: none;
    border-radius: 99px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.theme-toggle-btn:hover {
    color: var(--color-text);
}

.theme-toggle-btn[aria-pressed="true"] {
    background: var(--color-surface);
    color: var(--color-navy);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Indicateur discret version/statut (pied de sidebar) — cf. brief offline-first */
.app-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 20px 0;
    color: var(--color-text-light);
    font-size: var(--font-size-2xs);
}

.app-status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 99px;
    background: var(--tint-ok-text);
}

.app-status-dot--offline {
    background: var(--color-text-light);
}

/* Desktop : sidebar plus étroite (220px) — resserrer pour tenir sans déborder.
   Le mobile (sidebar 260px, cf. global.css) garde le gabarit ci-dessus. */
@media (min-width: 769px) {
    .theme-toggle {
        gap: 0;
        padding: 2px;
        margin: 8px 14px 0;
    }
    .theme-toggle-btn {
        padding: 4px 3px;
        gap: 3px;
        font-size: var(--font-size-2xs);
    }
    .theme-toggle-icon {
        width: 12px;
        height: 12px;
    }
}

.tool-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Resource chips */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.resource-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.resource-chip:hover {
    border-color: var(--color-navy-light);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--color-text);
}
.resource-chip img { width: 16px; height: 16px; flex-shrink: 0; border-radius: 3px; }

/* Raccourcis outils du dashboard — chips compacts (triés par usage récent, JS) */
.tool-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tool-chip:hover {
    border-color: var(--color-navy-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--color-text);
}
.tool-chip-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
}
.tool-chip:nth-child(6n+1) .tool-chip-icon { background: var(--tint-blue-bg); }
.tool-chip:nth-child(6n+2) .tool-chip-icon { background: var(--tint-green-bg); }
.tool-chip:nth-child(6n+3) .tool-chip-icon { background: var(--tint-amber-bg); }
.tool-chip:nth-child(6n+4) .tool-chip-icon { background: var(--tint-purple-bg); }
.tool-chip:nth-child(6n+5) .tool-chip-icon { background: var(--tint-red-bg); }
.tool-chip:nth-child(6n)   .tool-chip-icon { background: var(--tint-gray-bg); }

/* Changelog replié (dashboard) */
.changelog-more { margin-top: 4px; }
.changelog-more summary {
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-navy);
    padding: 8px 0;
}
.changelog-more summary::marker { color: var(--color-text-muted); }

/* Guideline and article cards flex layout */
.guideline-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Toggles lu/non-lu — état de chargement (AJAX) ─────────
   Pendant la requête : bouton désactivé + icône qui tourne
   (retour visuel utile sur réseau lent, ex. 3G hospitalière). */
.read-toggle:disabled,
#markAllReadBtn:disabled { opacity: .55; cursor: wait; }
.read-toggle.is-loading .read-icon {
    display: inline-block;
    animation: read-spin .8s linear infinite;
}
@keyframes read-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .read-toggle.is-loading .read-icon { animation: none; }
}

/* ── Trauma (aide cognitive traumatologie) ─────────────────
   Chrono manuel + frise chronologique verticale, 6 bandes canoniques. */
.trauma-phases {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
@media (max-width: 768px) {
    .trauma-phases { grid-template-columns: repeat(3, 1fr); }
}
.trauma-phase {
    min-width: 0;
    padding: 6px 4px;
    border: 1.5px solid var(--color-border);
    border-radius: calc(var(--radius) - 2px);
    background: var(--color-bg);
    font-size: var(--font-size-2xs);
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    text-align: center;
    transition: border-color .12s, background .12s, color .12s;
}
@media (hover: hover) {
    .trauma-phase:hover { border-color: var(--tint-info-border); color: var(--tint-info-text); }
}
.trauma-phase.active {
    box-shadow: 0 0 0 2px var(--color-navy) inset;
}
.trauma-phase.status-vert, .trauma-band.status-vert {
    background: var(--tint-ok-bg);
    border-color: var(--tint-ok-border);
}
.trauma-phase.status-vert { color: var(--tint-ok-text); }
.trauma-band.status-vert .trauma-band-label { color: var(--tint-ok-text); }
.trauma-phase.status-bleu, .trauma-band.status-bleu {
    background: var(--tint-info-bg);
    border-color: var(--tint-info-border);
}
.trauma-phase.status-bleu { color: var(--tint-info-text); }
.trauma-band.status-bleu .trauma-band-label { color: var(--tint-info-text); }
.trauma-phase.status-rouge, .trauma-band.status-rouge {
    background: var(--tint-danger-bg);
    border-color: var(--tint-danger-border);
}
.trauma-phase.status-rouge { color: var(--tint-danger-text); }
.trauma-band.status-rouge .trauma-band-label { color: var(--tint-danger-text); }

.trauma-chrono-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-4);
}
.trauma-chrono-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 0 0 200px;
    min-width: 0;
}
.trauma-chrono-actions .btn {
    width: 100%;
}
.trauma-chrono-actions .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.trauma-chrono-display-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trauma-chrono-display {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-navy);
    min-width: 0;
}
@media (max-width: 768px) {
    .trauma-chrono-card {
        flex-direction: column;
    }
    .trauma-chrono-actions {
        flex: 0 0 auto;
    }
}

.trauma-situations-title {
    font-size: var(--font-size-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
}
.trauma-situations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2) var(--space-4);
}
@media (max-width: 768px) {
    .trauma-situations { grid-template-columns: repeat(2, 1fr); }
}
.trauma-situation {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 6px 10px;
    border: 1.5px solid var(--color-border);
    border-radius: calc(var(--radius) - 2px);
    font-size: var(--font-size-xs);
    cursor: pointer;
    user-select: none;
}
.trauma-situation input[type=checkbox] {
    accent-color: var(--color-navy);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.trauma-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}
.trauma-band-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.trauma-band-label {
    font-size: var(--font-size-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-text-muted);
    min-width: 0;
}
.trauma-band-reco {
    background: var(--tint-purple-bg);
    border: 1.5px solid var(--tint-purple-border);
    border-radius: var(--radius);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
}
.trauma-band-reco:empty {
    padding: 0;
    margin-bottom: 0;
}
.trauma-band-reco-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}
.trauma-band-reco-list {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.trauma-band-reco-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}
.trauma-reco-text { min-width: 0; flex: 1; }
.trauma-band-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trauma-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: 3px 0;
    user-select: none;
}
.trauma-item input[type=checkbox] {
    accent-color: var(--color-navy);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.trauma-item-text {
    min-width: 0;
    flex: 1;
}
.trauma-subitems {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 23px;
}
.trauma-subitems.hidden { display: none; }

.trauma-band-situations {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.trauma-band-situation {
    background: var(--tint-warn-bg);
    border: 1.5px solid var(--tint-warn-border);
    border-radius: var(--radius);
    padding: var(--space-3);
}
.trauma-band-situation-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--tint-warn-text);
    margin: 0 0 var(--space-2);
}
