/* Support Technique — thème ardoise / indigo */

body:has(.sh-hub-page) .container,
body:has(.sh-hub-page) #content,
body:has(.sh-hub-page).has-navbar > .content,
body:has(.sh-hub-page)[data-navbar="side"].minimized #content,
body:has(.sh-hub-page)[data-navbar="side"].has-navbar > .content {
    max-width: none !important;
    width: 100%;
}

body.sh-no-scroll {
    overflow: hidden;
}

body.sh-no-scroll #support-bubble {
    display: none;
}

.sh-hub-page,
.sh-drawer,
.sh-drawer-backdrop,
.sh-lightbox {
    --sh-accent: #4f46e5;
    --sh-accent-2: #7c3aed;
    --sh-accent-dark: #3730a3;
    --sh-accent-soft: #eef2ff;
    --sh-accent-ring: rgba(79, 70, 229, .18);
    --sh-bg: #f6f7fb;
    --sh-surface: #ffffff;
    --sh-surface-2: #f9fafb;
    --sh-border: #e6e8ef;
    --sh-border-strong: #d5d9e3;
    --sh-text: #0f172a;
    --sh-text-2: #334155;
    --sh-muted: #64748b;
    --sh-muted-2: #94a3b8;
    --sh-ok: #047857;
    --sh-ok-bg: #ecfdf5;
    --sh-ok-dot: #10b981;
    --sh-warn: #b45309;
    --sh-warn-bg: #fffbeb;
    --sh-warn-dot: #f59e0b;
    --sh-danger: #b91c1c;
    --sh-danger-bg: #fef2f2;
    --sh-danger-dot: #ef4444;
    --sh-info: #4338ca;
    --sh-info-bg: #eef2ff;
    --sh-info-dot: #6366f1;
    --sh-neutral: #475569;
    --sh-neutral-bg: #f1f5f9;
    --sh-neutral-dot: #94a3b8;
    --sh-radius: 14px;
    --sh-radius-sm: 10px;
    --sh-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --sh-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .04);
    --sh-shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .25);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sh-hub-page {
    margin: -10px -14px 0;
}

.sh-hub {
    background: var(--sh-bg);
    color: var(--sh-text);
    min-height: calc(100vh - 60px);
    padding: 0 28px 48px;
}

/* ---------- Bandeau ---------- */

.sh-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -28px 24px;
    padding: 28px 28px 30px;
    color: #fff;
    background:
        radial-gradient(1200px 300px at 85% -60%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(600px 220px at 10% 140%, rgba(124, 58, 237, .55), transparent 60%),
        linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
    overflow: hidden;
}

.sh-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.sh-header > * {
    position: relative;
    z-index: 1;
}

.sh-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
}

.sh-header .sh-crumb {
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
}

.sh-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.sh-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    margin-top: 2px;
}

.sh-crumb {
    font-size: 12px;
    color: var(--sh-muted);
}

.sh-spacer {
    flex: 1;
}

.sh-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(6px);
}

.sh-tab {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    padding: 8px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.sh-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.sh-tab.active {
    background: #fff;
    color: var(--sh-accent-dark);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .2);
}

.sh-tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ---------- KPI ---------- */

.sh-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.sh-kpi {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 18px;
    box-shadow: var(--sh-shadow);
    font: inherit;
    color: inherit;
    overflow: hidden;
}

button.sh-kpi {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

button.sh-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .18);
}

button.sh-kpi:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--sh-accent-ring);
}

.sh-kpi-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--sh-neutral-bg);
    color: var(--sh-neutral);
}

.sh-kpi-total .sh-kpi-icon {
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-2));
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .5);
}

.sh-kpi.b-info .sh-kpi-icon { background: var(--sh-info-bg); color: var(--sh-info); }
.sh-kpi.b-warn .sh-kpi-icon { background: var(--sh-warn-bg); color: var(--sh-warn); }
.sh-kpi.b-ok .sh-kpi-icon { background: var(--sh-ok-bg); color: var(--sh-ok); }

.sh-kpi.active.b-info { border-color: var(--sh-info-dot); box-shadow: 0 0 0 3px var(--sh-info-bg); }
.sh-kpi.active.b-warn { border-color: var(--sh-warn-dot); box-shadow: 0 0 0 3px var(--sh-warn-bg); }
.sh-kpi.active.b-ok { border-color: var(--sh-ok-dot); box-shadow: 0 0 0 3px var(--sh-ok-bg); }

.sh-kpi-body {
    flex: 1;
    min-width: 0;
}

.sh-kpi-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.sh-kpi-value small {
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-muted-2);
    margin-left: 8px;
    letter-spacing: 0;
}

.sh-kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--sh-muted);
    margin-top: 2px;
}

.sh-kpi-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--sh-neutral-bg);
    margin-top: 12px;
    overflow: hidden;
}

.sh-kpi-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--sh-neutral-dot);
    transition: width .4s ease;
}

.sh-kpi.b-info .sh-kpi-bar span { background: var(--sh-info-dot); }
.sh-kpi.b-warn .sh-kpi-bar span { background: var(--sh-warn-dot); }
.sh-kpi.b-ok .sh-kpi-bar span { background: var(--sh-ok-dot); }

/* ---------- Filtres ---------- */

.sh-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-xs);
}

.sh-filters select,
.sh-filters input[type="date"],
.sh-input {
    height: 36px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    background: var(--sh-surface-2);
    color: var(--sh-text-2);
    padding: 0 10px;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.sh-filters select:hover,
.sh-filters input[type="date"]:hover {
    border-color: var(--sh-border-strong);
}

.sh-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 220px;
}

.sh-search .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sh-muted-2);
    font-size: 13px;
}

.sh-search input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    padding: 0 12px 0 34px;
    font-size: 13px;
    background: var(--sh-surface-2);
    color: var(--sh-text);
}

.sh-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sh-muted-2);
}

.sh-input:focus,
.sh-search input:focus,
.sh-filters select:focus,
.sh-filters input[type="date"]:focus {
    outline: none;
    background: var(--sh-surface);
    border-color: var(--sh-accent);
    box-shadow: 0 0 0 3px var(--sh-accent-ring);
}

/* ---------- Carte / tableau ---------- */

.sh-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    overflow: hidden;
}

.sh-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-muted);
    border-bottom: 1px solid var(--sh-border);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sh-list-meta .sh-btn {
    text-transform: none;
    letter-spacing: 0;
}

.sh-btn.sh-btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.sh-bulk {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px 10px 18px;
    background: var(--sh-accent-soft);
    border-bottom: 1px solid #dfe3fb;
}

.sh-bulk[hidden] {
    display: none;
}

.sh-bulk-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--sh-accent-dark);
}

.sh-table .sh-check-cell {
    width: 44px;
    padding-right: 0;
    cursor: default;
}

.sh-check-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--sh-accent);
}

.sh-row.sh-row-selected {
    background: #f5f6ff;
}

.sh-table-wrap {
    overflow-x: auto;
}

.sh-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.sh-table th {
    position: sticky;
    top: 0;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sh-muted);
    background: var(--sh-surface-2);
    padding: 10px 18px;
    border-bottom: 1px solid var(--sh-border);
    white-space: nowrap;
}

.sh-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f2f6;
    vertical-align: middle;
    color: var(--sh-text-2);
}

.sh-table tbody tr:last-child td {
    border-bottom: 0;
}

.sh-row {
    cursor: pointer;
    transition: background .12s ease;
}

.sh-row td:first-child {
    box-shadow: inset 3px 0 0 transparent;
    transition: box-shadow .12s ease;
}

.sh-row:hover,
.sh-row:focus {
    background: #fafaff;
    outline: none;
}

.sh-row:hover td:first-child,
.sh-row:focus td:first-child {
    box-shadow: inset 3px 0 0 var(--sh-accent);
}

.sh-row-title {
    font-weight: 600;
    color: var(--sh-text);
}

.sh-row-sub {
    font-size: 12px;
    color: var(--sh-muted);
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.sh-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sh-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sh-border);
}

.sh-nowrap {
    white-space: nowrap;
    color: var(--sh-muted);
    font-variant-numeric: tabular-nums;
}

.sh-right {
    text-align: right;
}

.sh-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--sh-muted);
    font-size: 14px;
}

.sh-empty .far,
.sh-empty .fas {
    display: block;
    font-size: 26px;
    color: var(--sh-muted-2);
    margin-bottom: 10px;
}

.sh-more {
    padding: 14px;
    text-align: center;
    border-top: 1px solid var(--sh-border);
}

.sh-muted {
    color: var(--sh-muted);
    font-size: 13px;
}

/* ---------- Badges ---------- */

.sh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.sh-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.sh-badge.b-info { background: var(--sh-info-bg); color: var(--sh-info); border-color: #e0e7ff; }
.sh-badge.b-warn { background: var(--sh-warn-bg); color: var(--sh-warn); border-color: #fef3c7; }
.sh-badge.b-ok { background: var(--sh-ok-bg); color: var(--sh-ok); border-color: #d1fae5; }
.sh-badge.b-danger { background: var(--sh-danger-bg); color: var(--sh-danger); border-color: #fee2e2; }
.sh-badge.b-neutral { background: var(--sh-neutral-bg); color: var(--sh-neutral); border-color: #e2e8f0; }

.sh-badge.b-info::before { background: var(--sh-info-dot); }
.sh-badge.b-warn::before { background: var(--sh-warn-dot); }
.sh-badge.b-ok::before { background: var(--sh-ok-dot); }
.sh-badge.b-danger::before { background: var(--sh-danger-dot); }
.sh-badge.b-neutral::before { background: var(--sh-neutral-dot); }

/* ---------- Boutons ---------- */

.sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    background: var(--sh-surface);
    color: var(--sh-text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--sh-shadow-xs);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.sh-btn:hover {
    border-color: var(--sh-border-strong);
    background: var(--sh-surface-2);
}

.sh-btn:active {
    transform: translateY(1px);
}

.sh-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--sh-accent-ring);
}

.sh-btn-primary {
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6);
}

.sh-btn-primary:hover {
    background: linear-gradient(135deg, var(--sh-accent-dark), var(--sh-accent));
    border-color: transparent;
    color: #fff;
}

.sh-btn-danger {
    color: var(--sh-danger);
    border-color: #fecaca;
    background: var(--sh-surface);
}

.sh-btn-danger:hover {
    background: var(--sh-danger-bg);
    border-color: #fca5a5;
}

.sh-btn-ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--sh-muted);
}

.sh-btn-ghost:hover {
    background: var(--sh-neutral-bg);
    border-color: transparent;
}

.sh-icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--sh-radius-sm);
    background: transparent;
    color: var(--sh-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.sh-icon-btn:hover {
    background: var(--sh-neutral-bg);
    color: var(--sh-text);
}

.sh-link {
    border: 0;
    background: none;
    color: var(--sh-accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    padding: 0;
}

.sh-link:hover {
    color: var(--sh-accent-dark);
    text-decoration: underline;
}

/* ---------- Panneau de détail ---------- */

.sh-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(3px);
    z-index: 1040;
    animation: sh-fade .18s ease;
}

@keyframes sh-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(760px, 100vw);
    background: var(--sh-bg);
    color: var(--sh-text);
    z-index: 1041;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-shadow-lg);
    animation: sh-slide .22s cubic-bezier(.2, .8, .2, 1);
}

@keyframes sh-slide {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.sh-drawer-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 24px 20px;
    background: var(--sh-surface);
    border-bottom: 1px solid var(--sh-border);
}

.sh-drawer-head::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sh-accent), var(--sh-accent-2));
}

.sh-drawer-title-wrap {
    flex: 1;
    min-width: 0;
}

.sh-drawer-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 4px 0 10px;
    word-break: break-word;
}

.sh-drawer-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sh-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.sh-drawer-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--sh-surface);
    border-top: 1px solid var(--sh-border);
}

.sh-section {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--sh-shadow-xs);
}

.sh-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--sh-muted);
    margin-bottom: 12px;
}

.sh-description {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.65;
    color: var(--sh-text-2);
}

.sh-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sh-grid-2 > .sh-section {
    margin-bottom: 14px;
}

.sh-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    margin: 0;
    font-size: 13px;
}

.sh-dl dt {
    color: var(--sh-muted);
    font-weight: 500;
}

.sh-dl dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
    color: var(--sh-text);
}

.sh-dl a {
    color: var(--sh-accent);
}

.sh-break {
    word-break: break-all;
}

.sh-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-text-2);
    margin: 10px 0 6px;
}

.sh-input {
    width: 100%;
    box-sizing: border-box;
}

.sh-textarea {
    height: auto;
    min-height: 100px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

.sh-segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--sh-neutral-bg);
    border-radius: 12px;
}

.sh-seg {
    border: 0;
    background: transparent;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sh-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.sh-seg:hover:not([disabled]) {
    background: rgba(255, 255, 255, .7);
    color: var(--sh-text);
}

.sh-seg.active {
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-xs), 0 0 0 1px var(--sh-border);
}

.sh-seg.active.b-info { color: var(--sh-info); }
.sh-seg.active.b-warn { color: var(--sh-warn); }
.sh-seg.active.b-ok { color: var(--sh-ok); }

.sh-seg[disabled] {
    cursor: default;
}

.sh-steps {
    display: flex;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    counter-reset: none;
}

.sh-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-muted-2);
}

.sh-step + .sh-step::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--sh-border);
    z-index: 0;
}

.sh-step-dot {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--sh-surface);
    border: 2px solid var(--sh-border-strong);
    color: var(--sh-muted);
}

.sh-step-done,
.sh-step-current {
    color: var(--sh-text-2);
}

.sh-step-done .sh-step-dot {
    background: var(--sh-ok-dot);
    border-color: var(--sh-ok-dot);
    color: #fff;
}

.sh-step-current .sh-step-dot {
    border-color: var(--sh-accent);
    color: var(--sh-accent);
    box-shadow: 0 0 0 4px var(--sh-accent-ring);
}

.sh-step-current:last-child .sh-step-dot {
    background: var(--sh-ok-dot);
    border-color: var(--sh-ok-dot);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}

.sh-step-done + .sh-step::before {
    background: var(--sh-ok-dot);
}

.sh-workflow-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: var(--sh-radius-sm);
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-border);
}

.sh-workflow-meta {
    font-size: 13px;
    color: var(--sh-text-2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-workflow-meta .fas {
    width: 16px;
    color: var(--sh-muted);
}

.sh-btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: transparent;
    color: #fff;
}

.sh-btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669);
    border-color: transparent;
    color: #fff;
}

.sh-btn.sh-loading {
    opacity: .6;
    pointer-events: none;
}

.sh-header .sh-header-btn {
    width: 38px;
    height: 38px;
    margin-left: 10px;
    flex-shrink: 0;
}

.sh-drawer-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sh-ref {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--sh-accent-soft);
    color: var(--sh-accent-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    vertical-align: 1px;
}

.sh-input-static {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--sh-surface-2);
    cursor: default;
}

.sh-captures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.sh-capture {
    padding: 0;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    overflow: hidden;
    background: var(--sh-surface-2);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: box-shadow .15s ease, transform .15s ease;
}

.sh-capture:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .35);
}

.sh-capture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Lightbox ---------- */

.sh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(2, 6, 23, .92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 80px;
    animation: sh-fade .15s ease;
}

.sh-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
    background: #fff;
}

.sh-lb-close,
.sh-lb-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background .15s ease;
}

.sh-lb-close:hover,
.sh-lb-nav:hover {
    background: rgba(255, 255, 255, .2);
}

.sh-lb-close { top: 16px; right: 16px; }
.sh-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.sh-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

.sh-lb-meta {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

.sh-lb-meta a {
    color: #fff;
    text-decoration: underline;
}

/* ---------- Paramètres ---------- */

.sh-settings {
    max-width: 980px;
}

.sh-settings-head {
    padding: 20px 22px 8px;
}

.sh-settings-head .sh-section-title {
    font-size: 15px;
    text-transform: none;
    letter-spacing: -.01em;
    color: var(--sh-text);
    margin-bottom: 4px;
}

.sh-add-member {
    display: flex;
    gap: 8px;
    padding: 12px 22px 18px;
}

.sh-add-member select {
    max-width: 440px;
}

.sh-table-static td .sh-input {
    max-width: 230px;
}

.sh-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--sh-text-2);
    cursor: pointer;
    margin: 0;
}

.sh-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.sh-switch span {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background .2s ease;
}

.sh-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
    transition: transform .2s ease;
}

.sh-switch input:checked + span {
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-2));
}

.sh-switch input:checked + span::after {
    transform: translateX(16px);
}

.sh-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--sh-accent-ring);
}

.sh-settings-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 22px;
    border-top: 1px solid var(--sh-border);
    background: var(--sh-surface-2);
}

/* ---------- Paramètres : bot Discord ---------- */

.sh-settings-discord {
    margin-top: 16px;
}

.sh-settings-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sh-settings-head-row .sh-switch {
    flex-shrink: 0;
}

.sh-discord-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    padding: 12px 22px 20px;
}

.sh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-weight: normal;
    min-width: 0;
}

.sh-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--sh-text-2);
}

.sh-field .sh-muted {
    font-size: 12px;
}

.sh-inline {
    display: flex;
    gap: 8px;
}

.sh-inline .sh-input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 700px) {
    .sh-discord-grid {
        grid-template-columns: 1fr;
        padding: 12px 16px 18px;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .sh-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sh-hub {
        padding: 0 14px 32px;
    }

    .sh-header {
        flex-wrap: wrap;
        margin: 0 -14px 18px;
        padding: 20px 14px;
    }

    .sh-grid-2 {
        grid-template-columns: 1fr;
    }

    .sh-lightbox {
        padding: 56px 12px;
    }
}
