/* NewsBoard — NCRS Fil Info / Wire Monitor */

.wire-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--st-bg, #141618);
    font-family: var(--wire-font, var(--st-font));
    font-size: var(--wire-text-base, 0.9375rem);
    line-height: var(--wire-leading-normal, 1.5);
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── Topbar ── */
.wire-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.45rem, 1.2vmin, 0.65rem) clamp(0.75rem, 2vw, 1.25rem);
    background: var(--st-surface, #1c1f24);
    border-bottom: 1px solid var(--st-border, rgba(255,255,255,0.1));
    box-shadow: var(--st-panel-shadow);
    flex-shrink: 0;
}

.wire-topbar-left,
.wire-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.wire-topbar-right {
    flex-shrink: 0;
}

.wire-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--st-text, #eceff4);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    white-space: nowrap;
}

.wire-brand:hover { color: var(--st-accent, #c9a227); }
.wire-brand .wire-i-brand svg { color: var(--st-accent, #c9a227); flex-shrink: 0; }

/* ── Icônes WireIcons (source unique) ── */
.wire-i,
[data-wire-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.wire-i svg,
[data-wire-icon] svg {
    width: 1em;
    height: 1em;
    display: block;
}
.wire-i-brand svg { width: 22px; height: 22px; }
.wire-i-sm svg { width: 14px; height: 14px; }

.wire-src-favicon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.wire-src-favicon-wrap.is-fallback .wire-src-favicon-img { display: none; }
.wire-src-favicon-wrap:not(.is-fallback) .wire-src-favicon-ph { display: none; }
.wire-src-favicon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
}

.wire-feed-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wire-feed-logo-wrap.is-fallback .wire-feed-logo { display: none; }
.wire-feed-logo-wrap:not(.is-fallback) .wire-src-favicon-ph { display: none; }

.wire-source-item .wire-src-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.wire-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    background: var(--st-accent, #c9a227);
    color: var(--st-badge-on-accent, #141618);
}

.wire-clock {
    font-family: var(--wire-font-mono, var(--st-mono));
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--st-text-dim, #9aa3b2);
    min-width: 5.5ch;
}

.wire-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 500;
    color: var(--st-text-muted, #6b7280);
    letter-spacing: 0.01em;
    text-transform: none;
}

.wire-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--st-status-idle, #6b7280);
    flex-shrink: 0;
}

.wire-status-dot.live {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: wire-pulse 2s ease infinite;
}

.wire-status-dot.poll {
    background: var(--st-accent, #c9a227);
    animation: wire-pulse 0.8s ease infinite;
}

@keyframes wire-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ── Tendances fil ── */
.wire-trends {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--st-border, rgba(255,255,255,0.08));
    background: var(--st-inset-bg);
    flex-shrink: 0;
    min-height: 2rem;
}

.wire-trends[hidden] { display: none !important; }

.wire-trends-label {
    flex-shrink: 0;
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
}

.wire-trends-track {
    display: flex;
    flex: 1;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding-bottom: 1px;
}

.wire-trends-track::-webkit-scrollbar { height: 4px; }
.wire-trends-track::-webkit-scrollbar-thumb {
    background: var(--st-scroll-thumb);
    border-radius: 4px;
}

.wire-trend-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--st-border, rgba(255,255,255,0.12));
    background: var(--st-surface, #1c1f24);
    color: var(--st-text-dim, #9aa3b2);
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wire-trend-chip:hover {
    border-color: var(--st-accent-border-strong);
    color: var(--st-text, #eceff4);
}

.wire-trend-chip.active {
    background: var(--st-accent-pill-bg);
    border-color: var(--st-accent-border-strong);
    color: var(--st-accent, #c9a227);
}

.wire-trend-count {
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    opacity: 0.75;
}

.wire-app.compact .wire-trends {
    padding: 0.25rem 0.5rem;
    min-height: 1.65rem;
}

.wire-app.compact .wire-trend-chip {
    font-size: 0.62rem;
    padding: 0.12rem 0.45rem;
}

.wire-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    min-height: 2.25rem;
    border: 1px solid var(--st-border, rgba(255,255,255,0.1));
    border-radius: 8px;
    background: var(--st-btn-bg, var(--st-surface-2, #262a31));
    color: var(--st-text-dim, #9aa3b2);
    font-family: inherit;
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.wire-btn:hover {
    background: var(--st-btn-hover-bg, #323842);
    color: var(--st-text, #eceff4);
    border-color: var(--st-btn-hover-border, rgba(255,255,255,0.18));
}

.wire-btn.active {
    background: var(--st-accent-soft);
    border-color: var(--st-accent-border);
    color: var(--st-accent, #c9a227);
}

.wire-btn.active.blocked {
    border-color: rgba(234, 179, 8, 0.55);
    color: #eab308;
    animation: wire-pulse 1.5s ease infinite;
}

.wire-btn.danger {
    border-color: rgba(197, 48, 48, 0.4);
    color: #f87171;
}

.wire-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Theme switch (header) ── */
.wire-nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--wire-chrome-top, 52px);
    z-index: 190;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    backdrop-filter: blur(2px);
}

.wire-nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.wire-nav-scroll-lock {
    overflow: hidden;
}

.wire-btn-prefs {
    border-color: var(--st-accent-border);
    color: var(--st-accent, #c9a227);
}

.wire-btn-prefs:hover {
    background: var(--st-accent-muted-bg);
    border-color: var(--st-accent-border-strong);
    color: var(--st-accent-hover, #dbb42e);
}

.wire-btn-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .wire-btn-prefs .wire-btn-label { display: none; }
}

/* ── Theme switch (header) ── */
.wire-theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--st-border);
    background: var(--st-inset-bg);
    flex-shrink: 0;
}

.wire-theme-btn {
    min-height: 2rem;
    min-width: 2rem;
    padding: 0.35rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}

.wire-theme-btn:hover {
    background: var(--st-hover);
    border-color: transparent;
}

.wire-theme-btn.active {
    background: var(--st-accent-soft);
    color: var(--st-accent);
    border-color: transparent;
}

.wire-theme-btn svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    .wire-theme-switch {
        order: 10;
    }
}

/* ── Layout ── */
.wire-app {
    --panel-nav-w: 260px;
    --panel-alerts-w: 340px;
    --panel-rail-w: 56px;
    --panel-nav-effective-w: var(--panel-nav-w);
    --panel-alerts-effective-w: var(--panel-alerts-w);
    --panel-nav-resize-w: 5px;
    --panel-alerts-resize-w: 5px;
    --panel-detail-h: 62vh;
    --panel-detail-w: 400px;
    --wire-chrome-top: 52px;

    /* Typo lecture — hiérarchie type reader RSS (titre > chapô > méta) */
    --wire-font: var(--st-font);
    --wire-font-mono: var(--st-mono);
    --wire-text-xs: 0.75rem;
    --wire-text-sm: 0.8125rem;
    --wire-text-base: 0.9375rem;
    --wire-text-md: 1rem;
    --wire-text-lg: 1.0625rem;
    --wire-text-xl: 1.125rem;
    --wire-leading-snug: 1.38;
    --wire-leading-normal: 1.52;
    --wire-leading-relaxed: 1.68;
    --wire-track-tight: -0.022em;
    --wire-track-normal: -0.012em;
    --wire-read-max: 42rem;
}

.wire-body {
    flex: 1;
    display: grid;
    grid-template-columns:
        var(--panel-nav-effective-w)
        var(--panel-nav-resize-w)
        1fr
        var(--panel-alerts-resize-w)
        var(--panel-alerts-effective-w);
    min-height: 0;
    overflow: hidden;
    transition: grid-template-columns 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.wire-app.panel-nav-collapsed {
    --panel-nav-effective-w: var(--panel-rail-w);
    --panel-nav-resize-w: 0px;
}

.wire-app.panel-alerts-collapsed {
    --panel-alerts-effective-w: var(--panel-rail-w);
    --panel-alerts-resize-w: 0px;
}

.wire-app.panel-nav-collapsed .wire-resize-col#resizeNav,
.wire-app.panel-alerts-collapsed .wire-resize-col#resizeAlerts {
    display: none;
    pointer-events: none;
}

@media (min-width: 1101px) {
    .wire-side-panel-nav { grid-column: 1; grid-row: 1; }
    .wire-resize-col#resizeNav { grid-column: 2; grid-row: 1; }
    .wire-main { grid-column: 3; grid-row: 1; }
    .wire-resize-col#resizeAlerts { grid-column: 4; grid-row: 1; }
    .wire-side-panel-alerts { grid-column: 5; grid-row: 1; }
}

@media (max-width: 1100px) {
    .wire-main { grid-column: 1; grid-row: 1; min-width: 0; }
}

.wire-resize-col {
    cursor: col-resize;
    background: transparent;
    position: relative;
    z-index: 5;
    touch-action: none;
}

.wire-resize-col::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 1px;
    margin: 0 auto;
    background: var(--st-border, rgba(255,255,255,0.08));
    transition: background 0.15s;
}

.wire-resize-col:hover::after,
.wire-resize-col.dragging::after {
    background: var(--st-accent, #c9a227);
    width: 2px;
}

@media (max-width: 1100px) {
    .wire-body { grid-template-columns: 1fr; }
    .wire-side-panel-alerts,
    .wire-resize-col#resizeAlerts,
    .wire-resize-col#resizeNav { display: none; }

    .wire-side-panel-nav {
        position: fixed;
        top: var(--wire-chrome-top, 52px);
        left: 0;
        bottom: 0;
        width: min(88vw, 320px);
        max-width: 100%;
        z-index: 200;
        display: flex !important;
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        pointer-events: none;
        overflow: visible;
    }

    .wire-side-panel-nav .wire-side-panel-head {
        pointer-events: auto;
        width: min(88vw, 320px);
        border-radius: 0 0 10px 0;
        box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.28);
    }

    .wire-side-panel-nav .wire-side-panel-body {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: var(--st-surface, #1c1f24);
        border-right: 1px solid var(--st-border, rgba(255, 255, 255, 0.12));
        box-shadow: 8px 0 36px rgba(0, 0, 0, 0.38);
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        pointer-events: auto;
        overflow: hidden;
    }

    .wire-side-panel-nav.open .wire-side-panel-body {
        transform: translateX(0);
    }

    .wire-side-panel-nav.open .wire-side-panel-head {
        border-radius: 0;
        box-shadow: none;
        border-right: 1px solid var(--st-border, rgba(255, 255, 255, 0.12));
    }

    .wire-side-panel-nav:not(.open) .wire-side-panel-head-main,
    .wire-side-panel-nav:not(.open) .wire-side-panel-collapse {
        display: none;
    }

    .wire-side-panel-nav .wire-side-panel-collapse {
        display: none;
    }
}

@media (max-width: 768px) {
    .wire-body { grid-template-columns: 1fr; }
    .wire-resize-col { display: none; }
}

/* ── Side panels (navigation + alertes) ── */
.wire-side-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--st-surface, #1c1f24);
    transition: width 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.wire-side-panel-nav {
    border-right: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
}

.wire-side-panel-alerts {
    border-left: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
}

.wire-side-panel-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
    background: var(--st-surface-2, rgba(255, 255, 255, 0.02));
    min-height: 3rem;
}

.wire-side-panel-head-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.wire-side-panel-alerts .wire-side-panel-head-main {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
}

.wire-side-panel-kicker {
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
    line-height: 1;
}

.wire-side-panel-title {
    margin: 0;
    font-family: inherit;
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 650;
    letter-spacing: var(--wire-track-normal, -0.012em);
    color: var(--st-text, #eceff4);
    line-height: 1.2;
}

.wire-side-panel-collapse {
    flex-shrink: 0;
    color: var(--st-text-dim, #9aa3b2);
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.wire-side-panel-collapse:hover {
    color: var(--st-accent, #c9a227);
}

.wire-rail-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wire-rail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.wire-rail-icon svg {
    width: 20px;
    height: 20px;
}

.wire-rail-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
    line-height: 1.1;
    white-space: nowrap;
}

.wire-rail-alert-count {
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--st-danger, #c53030);
    color: #fff;
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
    writing-mode: horizontal-tb;
    transform: none;
}

.wire-rail-alert-count.zero,
.wire-rail-alert-count[hidden] {
    display: none !important;
}

/* Panneau replié — onglet latéral visible */
@media (min-width: 1101px) {
    .wire-side-panel.is-collapsed {
        background: var(--st-surface-2, rgba(255, 255, 255, 0.03));
    }

    .wire-side-panel-nav.is-collapsed {
        border-right: 2px solid var(--st-accent, #c9a227);
        box-shadow: inset -1px 0 0 rgba(201, 162, 39, 0.15);
    }

    .wire-side-panel-alerts.is-collapsed {
        border-left: 2px solid var(--st-accent, #c9a227);
        box-shadow: inset 1px 0 0 rgba(201, 162, 39, 0.15);
    }

    .wire-side-panel.is-collapsed .wire-side-panel-body,
    .wire-side-panel.is-collapsed .wire-side-panel-head-main,
    .wire-side-panel.is-collapsed .wire-mobile-panel-close {
        display: none;
    }

    .wire-side-panel.is-collapsed .wire-side-panel-head {
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 0;
        min-height: 100%;
        height: 100%;
        border-bottom: none;
        background: transparent;
    }

    .wire-side-panel.is-collapsed .wire-side-panel-collapse {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 0 0 auto;
        min-height: 8.5rem;
        margin: 0;
        padding: 0.85rem 0.4rem;
        border-radius: 0;
        transition: background 0.15s, color 0.15s;
    }

    .wire-side-panel.is-collapsed .wire-side-panel-collapse:hover,
    .wire-side-panel.is-collapsed .wire-side-panel-collapse:focus-visible {
        background: var(--st-accent-soft, rgba(201, 162, 39, 0.14));
        color: var(--st-accent, #c9a227);
        outline: none;
    }

    .wire-side-panel.is-collapsed .wire-side-panel-collapse:hover .wire-rail-label,
    .wire-side-panel.is-collapsed .wire-side-panel-collapse:focus-visible .wire-rail-label {
        color: var(--st-accent, #c9a227);
    }

    .wire-side-panel.is-collapsed .wire-rail-icon svg {
        width: 22px;
        height: 22px;
    }
}

.wire-side-panel-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wire-side-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.45rem 0.5rem;
}

.wire-side-panel-foot {
    flex-shrink: 0;
    padding: 0.55rem 0.65rem;
    border-top: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
    background: var(--st-surface, #1c1f24);
}

/* Bouton replié visible en mode ouvert (icône seule dans le header) */
@media (min-width: 1101px) {
    .wire-side-panel:not(.is-collapsed) .wire-side-panel-collapse .wire-rail-label,
    .wire-side-panel:not(.is-collapsed) .wire-side-panel-collapse .wire-rail-alert-count {
        display: none;
    }

    .wire-side-panel:not(.is-collapsed) .wire-side-panel-collapse {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2rem;
        min-height: 2rem;
        padding: 0.35rem;
        border-radius: 8px;
        border: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
        background: var(--st-surface-2, rgba(255, 255, 255, 0.03));
    }

    .wire-side-panel:not(.is-collapsed) .wire-side-panel-collapse .wire-rail-stack {
        gap: 0;
    }

    .wire-side-panel:not(.is-collapsed) .wire-side-panel-collapse .wire-rail-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 1100px) {
    .wire-mobile-nav-btn { display: inline-flex; }
}

.wire-nav-drawer,
.wire-sources {
    display: flex;
    flex-direction: column;
    background: var(--st-surface, #1c1f24);
    border-right: 1px solid var(--st-border, rgba(255,255,255,0.1));
    min-height: 0;
}

.wire-sources-head {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--st-border, rgba(255,255,255,0.1));
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.wire-sources-head label {
    font-family: var(--st-mono, monospace);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
}

.wire-search {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--st-border, rgba(255,255,255,0.1));
    border-radius: 8px;
    background: var(--st-input-bg, var(--st-surface-2, #262a31));
    color: var(--st-text, #eceff4);
    font-size: var(--wire-text-sm, 0.8125rem);
    font-family: inherit;
    line-height: var(--wire-leading-snug, 1.38);
}

.wire-search:focus {
    outline: none;
    border-color: var(--st-accent, #c9a227);
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.wire-source-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem 0.5rem 0.75rem;
    list-style: none;
}

.wire-source-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.55rem;
    margin-bottom: 0.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 500;
    line-height: var(--wire-leading-snug, 1.38);
    color: var(--st-text-dim, #9aa3b2);
    transition: background 0.12s, border-color 0.12s;
}

.wire-source-item:hover {
    background: var(--st-hover);
    color: var(--st-text, #eceff4);
}

.wire-source-item.active {
    background: var(--st-selected-bg);
    border-color: var(--st-accent-border);
    color: var(--st-text, #eceff4);
    font-weight: 600;
}

.wire-source-item img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.wire-flag,
.src-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.wire-flag-meta {
    width: 22px;
    height: 16px;
}

.wire-source-item .src-country {
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--st-text-muted, #6b7280);
    padding: 0.1rem 0.3rem;
    border: 1px solid var(--st-subtle-border);
    border-radius: 3px;
    flex-shrink: 0;
}

.wire-source-item.active .src-country {
    color: var(--st-accent, #c9a227);
    border-color: var(--st-accent-border);
}

.wire-source-item .wire-rss-icon {
    flex-shrink: 0;
}
.wire-source-item .wire-rss-icon svg {
    width: 12px;
    height: 12px;
}

.wire-source-item .src-count {
    margin-left: auto;
    font-family: var(--wire-font-mono, var(--st-mono));
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 500;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    background: var(--st-surface-2, #262a31);
    color: var(--st-text-muted, #6b7280);
    border: 1px solid var(--st-subtle-border);
}

.wire-source-item.active .src-count {
    background: var(--st-accent, #c9a227);
    color: var(--st-on-accent, #141618);
    border-color: transparent;
}

.wire-source-section {
    padding: 0.75rem 0.55rem 0.25rem;
    font-family: inherit;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
}

/* ── Wire feed (main) ── */
.wire-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: var(--st-bg, #141618);
    position: relative;
    overflow: hidden;
}

.wire-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--st-border, rgba(255,255,255,0.08));
    flex-shrink: 0;
}

.wire-toolbar-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wire-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.wire-filter-chip {
    font-size: var(--wire-text-xs, 0.75rem);
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--st-accent-muted-bg);
    color: var(--st-accent, #c9a227);
    border: 1px solid var(--st-accent-border);
}

.wire-filter-reset {
    cursor: pointer;
    background: transparent;
    color: var(--st-text-dim, #9aa3b2);
    border-color: var(--st-strong-border);
}

.wire-filter-reset:hover {
    color: var(--st-text, #eceff4);
    border-color: var(--st-btn-hover-border);
}

.wire-acc-hint,
.wire-acc-paused {
    margin: 0 0 0.4rem;
    padding: 0 0.15rem;
    font-size: var(--wire-text-xs, 0.75rem);
    line-height: var(--wire-leading-normal, 1.52);
    color: var(--st-text-muted, #6b7280);
}

.wire-acc-paused {
    color: var(--st-accent, #c9a227);
}

.wire-acc-muted .wire-nav-item.paused {
    opacity: 0.45;
    pointer-events: auto;
}

.wire-nav-item.paused.active {
    opacity: 1;
}

.wire-toolbar-title {
    font-family: inherit;
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 600;
    letter-spacing: var(--wire-track-normal, -0.012em);
    text-transform: none;
    color: var(--st-text-muted, #6b7280);
    margin-right: auto;
}

.wire-feed {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.wire-row {
    display: grid;
    grid-template-columns: 6.25rem 1fr auto;
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.72rem 1rem;
    border-bottom: 1px solid var(--st-row-divider);
    cursor: pointer;
    transition: background 0.1s;
}

/* Colonnes alignées sur le plus large (subgrid) — vues fil + titres */
.wire-feed--list,
.wire-feed--headlines {
    display: grid;
    column-gap: 0.45rem;
    align-items: center;
}

.wire-feed--list {
    grid-template-columns: max-content max-content minmax(5rem, max-content) minmax(0, 1fr) max-content;
}

.wire-feed--headlines {
    grid-template-columns: max-content max-content max-content minmax(4rem, max-content) minmax(0, 1fr) max-content;
    padding: 0.15rem 0;
}

.wire-feed--list .wire-row,
.wire-feed--headlines .wire-headline-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: center;
    min-width: 0;
}

.wire-feed--list .wire-row {
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.72rem 1rem;
}

.wire-feed--headlines .wire-headline-row {
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-bottom: 1px solid var(--st-row-divider);
    cursor: pointer;
    transition: background 0.1s;
}

.wire-col-time { white-space: nowrap; }
.wire-col-flag,
.wire-col-theme,
.wire-col-aside { justify-self: start; }
.wire-col-source { min-width: 0; justify-self: start; }
.wire-col-title {
    margin: 0;
    min-width: 0;
    justify-self: stretch;
}

.wire-row-flag-ph {
    display: inline-block;
    width: 28px;
    height: 20px;
}
.wire-headline-flag-ph {
    display: inline-block;
    width: 22px;
    height: 16px;
}
.wire-headline-time-ph {
    display: inline-block;
    min-width: 4.25rem;
}

.wire-feed--list .wire-col-source .wire-source-tag {
    padding-top: 0;
}

.wire-feed--headlines .wire-headline-source {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--st-text-muted);
}
.wire-feed--headlines .wire-headline-source-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wire-feed--headlines .wire-headline-row .wire-headline {
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wire-feed--headlines .wire-headline-theme {
    display: inline-flex;
    align-items: center;
}
.wire-feed--headlines .wire-headline-row .wire-theme-badge {
    font-size: 0.58rem;
    padding: 0.08rem 0.32rem;
}
.wire-feed--headlines .wire-headline-aside {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-self: end;
}
.wire-feed--headlines .wire-headline-row .wire-time {
    font-size: 0.72rem;
}
.wire-feed--headlines .wire-headline-row .wire-lead-flag {
    width: 22px;
    height: 16px;
}

.wire-row-lead {
    grid-column: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.32rem;
    min-width: 0;
}

.wire-row-lead .wire-time {
    flex: 0 0 auto;
    min-width: 2.35rem;
}

.wire-row-lead .wire-lead-flag {
    width: 28px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.06rem;
}

.wire-source-name-row .wire-source-logo {
    width: 16px;
    height: 16px;
    padding: 1px;
    border-radius: 3px;
}

.wire-row-main {
    grid-column: 2;
}

.wire-row-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    min-width: 2.75rem;
    flex-shrink: 0;
}

.wire-feed--list .wire-row-aside {
    grid-column: auto;
    justify-self: end;
    align-self: start;
}

.wire-row-aside-empty {
    min-width: 0;
    width: 0;
    overflow: hidden;
    padding: 0;
    border: none;
}

.wire-row-aside .wire-priority {
    margin-top: 0;
    align-self: center;
}

.wire-row-rss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.wire-row-aside .wire-rss-icon svg {
    width: 13px;
    height: 13px;
}

.wire-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.wire-row-main .wire-source-tag {
    padding-top: 0;
}

.wire-row-main .wire-headline {
    margin: 0;
}

.wire-row:hover {
    background: var(--st-row-hover);
}

.wire-row.selected {
    background: var(--st-selected-bg);
    box-shadow: inset 3px 0 0 var(--st-accent, #c9a227);
}

.wire-row.new-wire {
    background: var(--st-new-bg);
    animation: wire-flash 1.2s ease 2;
}

.wire-row.priority-flash {
    background: var(--st-flash-bg);
    box-shadow: inset 3px 0 0 #c53030;
}

.wire-row.priority-flash.new-wire {
    animation: wire-flash-red 1s ease 3;
}

.wire-row.priority-urgent {
    background: var(--st-urgent-bg);
    box-shadow: inset 3px 0 0 var(--st-warning);
}

@keyframes wire-flash {
    0%, 100% { background: rgba(201, 162, 39, 0.08); }
    50% { background: rgba(201, 162, 39, 0.22); }
}

@keyframes wire-flash-red {
    0%, 100% { background: rgba(197, 48, 48, 0.12); }
    50% { background: rgba(197, 48, 48, 0.28); }
}

.wire-time {
    font-family: var(--wire-font-mono, var(--st-mono));
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--st-text-dim, #9aa3b2);
    padding-top: 0.12rem;
    line-height: var(--wire-leading-snug, 1.38);
}

.wire-country {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.18rem;
    padding: 0.2rem 0.15rem;
    margin-top: 0.02rem;
    border-radius: 6px;
    background: var(--st-surface-2, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--st-subtle-border, rgba(255, 255, 255, 0.08));
    min-width: 0;
}

.wire-country-empty {
    visibility: hidden;
    border-color: transparent;
    background: transparent;
    padding: 0;
}

.wire-country-flag {
    width: 28px;
    height: 20px;
}

.wire-country-code {
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--st-text-dim, #9aa3b2);
    line-height: 1;
}

.wire-source-tag {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.22rem;
    width: 100%;
    font-family: inherit;
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 500;
    letter-spacing: var(--wire-track-normal, -0.012em);
    text-transform: none;
    color: var(--st-text-muted, #6b7280);
    padding-top: 0.05rem;
    line-height: var(--wire-leading-snug, 1.38);
    min-width: 0;
}

.wire-source-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1;
}

.wire-row .wire-source-tag {
    white-space: normal;
    overflow: visible;
}

.wire-source-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.4rem;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}

.wire-source-name-row .wire-flag {
    flex-shrink: 0;
}

.wire-source-tag > .wire-badge-platform {
    grid-column: 1 / -1;
    justify-self: start;
}

.wire-source-name {
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 600;
    letter-spacing: var(--wire-track-normal, -0.012em);
    text-transform: none;
    color: var(--st-text-dim, #9aa3b2);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wire-cat-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--st-text-muted, #8b949e);
    line-height: 1.2;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: var(--st-surface-2, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--st-subtle-border, rgba(255, 255, 255, 0.07));
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.wire-theme-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.wire-theme-badge.theme-info { color: #9aa3b2; background: rgba(154, 163, 178, 0.12); border-color: rgba(154, 163, 178, 0.25); }
.wire-theme-badge.theme-politique { color: #c4a8ff; background: rgba(124, 92, 255, 0.14); border-color: rgba(124, 92, 255, 0.35); }
.wire-theme-badge.theme-eco { color: #7ec8a4; background: rgba(46, 160, 67, 0.12); border-color: rgba(46, 160, 67, 0.3); }
.wire-theme-badge.theme-international { color: #7eb8ff; background: rgba(56, 139, 253, 0.12); border-color: rgba(56, 139, 253, 0.32); }
.wire-theme-badge.theme-france { color: #6ea8ff; background: rgba(31, 111, 235, 0.14); border-color: rgba(31, 111, 235, 0.35); }
.wire-theme-badge.theme-societe { color: #e8b86d; background: rgba(210, 153, 34, 0.12); border-color: rgba(210, 153, 34, 0.32); }
.wire-theme-badge.theme-justice { color: #ff9a9a; background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.32); }
.wire-theme-badge.theme-culture { color: #f0a6d8; background: rgba(219, 97, 162, 0.12); border-color: rgba(219, 97, 162, 0.3); }
.wire-theme-badge.theme-sport { color: #8fdfaa; background: rgba(63, 185, 80, 0.14); border-color: rgba(63, 185, 80, 0.35); }
.wire-theme-badge.theme-tech { color: #79d9ff; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.32); }
.wire-theme-badge.theme-environnement { color: #9de07a; background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.28); }
.wire-theme-badge.theme-sante { color: #ffb4b4; background: rgba(255, 123, 114, 0.12); border-color: rgba(255, 123, 114, 0.3); }

.wire-row .wire-cat-badge {
    opacity: 0.95;
}

.wire-rss-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--st-accent, #c9a227);
    opacity: 0.9;
    line-height: 0;
}
.wire-rss-icon svg {
    width: 11px;
    height: 11px;
    display: block;
}

.wire-feed-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    padding: 2px;
    border-radius: 5px;
    border: 1px solid var(--st-subtle-border);
    background: var(--st-surface-2, #262a31);
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wire-feed-logo-empty {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px dashed var(--st-subtle-border);
    background: var(--st-surface-2, rgba(255, 255, 255, 0.03));
    opacity: 0.3;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wire-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--st-subtle-border);
    background: var(--st-surface-2, #262a31);
    display: block;
    margin-top: 0.05rem;
}

.wire-thumb-logo {
    object-fit: contain;
    padding: 7px;
    background: var(--st-thumb-logo-bg);
}

.wire-thumb-empty {
    display: block;
    width: 48px;
    height: 48px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.wire-thumb-preview {
    width: 100%;
    height: auto;
    max-height: 220px;
}

.wire-headline {
    font-size: var(--wire-text-md, 1rem);
    font-weight: 600;
    line-height: var(--wire-leading-normal, 1.52);
    letter-spacing: var(--wire-track-tight, -0.022em);
    color: var(--st-text, #eceff4);
    margin: 0;
}

.wire-row.priority-flash .wire-headline {
    font-size: var(--wire-text-lg, 1.0625rem);
    font-weight: 700;
    line-height: var(--wire-leading-snug, 1.38);
}

.wire-row.priority-urgent .wire-headline {
    font-size: var(--wire-text-md, 1rem);
    font-weight: 600;
}

.wire-headline-text {
    display: inline;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wire-headline-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    vertical-align: baseline;
    margin-left: 0.35rem;
}

.wire-priority {
    font-family: inherit;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.42rem;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: start;
    margin-top: 0.12rem;
}

.wire-priority.flash {
    background: #c53030;
    color: #fff;
}

.wire-priority.urgent {
    background: var(--st-warning-bg);
    color: var(--st-warning);
    border: 1px solid var(--st-warning-border);
}

.wire-suspicion-badge {
    font-family: inherit;
    font-size: var(--wire-text-xs, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.14rem 0.36rem;
    border-radius: 4px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 0.2rem;
}

.wire-suspicion-badge.high {
    color: #f0a870;
    background: rgba(210, 120, 40, 0.14);
    border: 1px solid rgba(210, 120, 40, 0.38);
}

.wire-suspicion-badge.low {
    color: #9aa3b2;
    background: rgba(154, 163, 178, 0.12);
    border: 1px solid rgba(154, 163, 178, 0.28);
}

.wire-feed-item.suspicion-high {
    border-left-color: rgba(210, 120, 40, 0.45);
}

.wire-feed-item.suspicion-low {
    border-left-color: rgba(154, 163, 178, 0.25);
}

.wire-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--st-text-muted, #6b7280);
    font-size: 0.9rem;
}

/* ── Alerts list (inside side panel) ── */
.wire-side-panel-alerts .wire-alert-count {
    margin-left: auto;
}

.wire-alerts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem 0.45rem;
    min-height: 0;
}

.wire-alert-count {
    font-family: var(--st-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--st-danger, #c53030);
    color: #fff;
}

.wire-alert-count.zero {
    background: var(--st-surface-2, #262a31);
    color: var(--st-text-muted, #6b7280);
}

.wire-alert-card {
    padding: 0.6rem 0.65rem;
    margin-bottom: 0.35rem;
    border-radius: 8px;
    border: 1px solid var(--st-subtle-border);
    background: var(--st-card-bg);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.wire-alert-card:hover {
    border-color: var(--st-accent-border);
}

.wire-alert-card.flash {
    border-color: var(--st-danger-soft-border);
    background: var(--st-danger-soft-bg);
}

.wire-alert-card .alert-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-family: var(--st-mono, monospace);
    font-size: 0.62rem;
    color: var(--st-text-muted, #6b7280);
}

.alert-meta-source {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.alert-meta-source > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wire-alert-card .alert-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--st-text, #eceff4);
    flex: 1;
    min-width: 0;
}

.alert-body {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.alert-body .wire-feed-logo,
.alert-body .wire-feed-logo-empty,
.alert-body .wire-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.wire-alert-card .alert-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.wire-alert-card .alert-actions button {
    flex: 1;
    padding: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid var(--st-border, rgba(255,255,255,0.1));
    background: transparent;
    color: var(--st-text-dim, #9aa3b2);
    cursor: pointer;
    font-family: inherit;
}

.wire-alert-card .alert-actions button:hover {
    background: var(--st-subtle-bg-2);
    color: var(--st-text, #eceff4);
}

/* ── Detail drawer (inside .wire-main = même largeur que le fil) ── */
.wire-detail {
    background: var(--st-surface, #1c1f24);
    box-shadow: var(--st-modal-shadow);
    z-index: 20;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transition: max-height 0.25s ease, transform 0.25s ease;
}

/* Bas — sous le fil, même colonne */
.wire-app.detail-bottom .wire-detail {
    position: relative;
    max-height: 0;
    overflow: hidden;
    border-top: none;
    transform: none;
}

.wire-app.detail-bottom .wire-detail.open {
    max-height: var(--panel-detail-h, 62vh);
    border-top: 2px solid var(--st-accent, #c9a227);
}

.wire-app.detail-bottom .wire-detail-resize {
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    cursor: ns-resize;
}

.wire-app.detail-bottom .wire-main:has(.wire-detail.open) .wire-feed {
    flex: 1;
    min-height: 0;
}

/* Droite — panneau latéral dans la colonne fil */
.wire-app.detail-right .wire-detail {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(var(--panel-detail-w, 400px), 100%);
    max-height: none;
    max-width: 100%;
    border-top: none;
    border-left: 2px solid var(--st-accent, #c9a227);
    transform: translateX(100%);
    z-index: 30;
}

.wire-app.detail-right .wire-detail.open {
    transform: translateX(0);
}

.wire-app.detail-right .wire-detail-resize {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 6px;
    height: auto;
    cursor: col-resize;
}

.wire-detail-resize {
    position: absolute;
    z-index: 2;
    touch-action: none;
}

.wire-detail-resize:hover,
.wire-detail-resize.dragging {
    background: linear-gradient(to bottom, var(--st-accent-muted-bg, rgba(201,162,39,0.15)), transparent);
}

.wire-app.detail-right .wire-detail-resize:hover,
.wire-app.detail-right .wire-detail-resize.dragging {
    background: linear-gradient(to right, var(--st-accent-muted-bg, rgba(201,162,39,0.15)), transparent);
}

@media (max-width: 768px) {
    .wire-app.detail-right .wire-detail {
        width: 100%;
    }
}

.wire-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--st-border, rgba(255,255,255,0.1));
    flex-shrink: 0;
}

.wire-detail-thumb {
    flex-shrink: 0;
    width: 148px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--st-surface-2, #262a31);
    border: 1px solid var(--st-border, rgba(255,255,255,0.1));
}

.wire-detail-thumb[hidden] {
    display: none !important;
}

.wire-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wire-detail-head-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .wire-detail-thumb {
        width: 96px;
    }
}

.wire-detail-head h3 {
    font-size: var(--wire-text-xl, 1.125rem);
    font-weight: 600;
    line-height: var(--wire-leading-snug, 1.38);
    letter-spacing: var(--wire-track-tight, -0.022em);
    color: var(--st-text, #eceff4);
}

.wire-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 500;
    color: var(--st-text-muted, #6b7280);
    margin-top: 0.35rem;
}

.wire-detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.25rem;
    font-size: var(--wire-text-base, 0.9375rem);
    line-height: var(--wire-leading-relaxed, 1.68);
    letter-spacing: var(--wire-track-normal, -0.012em);
    color: var(--st-text-dim, #9aa3b2);
    max-width: var(--wire-read-max, 42rem);
}

.wire-app.detail-bottom .wire-detail.open .wire-detail-body {
    max-height: calc(var(--panel-detail-h, 62vh) - 5rem);
}

.wire-detail-body p { margin-bottom: 0.75rem; }

.wire-extract-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--st-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-accent, #c9a227);
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--st-accent-border);
    border-radius: 6px;
    background: var(--st-accent-muted-bg);
}

.wire-extract-status.error {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
    text-transform: none;
    font-size: 0.75rem;
    letter-spacing: normal;
}

.wire-extract-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(201, 162, 39, 0.25);
    border-top-color: var(--st-accent, #c9a227);
    border-radius: 50%;
    animation: wire-spin 0.7s linear infinite;
}

@keyframes wire-spin {
    to { transform: rotate(360deg); }
}

.wire-rss-preview {
    padding: 0.65rem 0.75rem;
    border-left: 3px solid var(--st-quote-border);
    background: var(--st-quote-bg);
    border-radius: 0 6px 6px 0;
    margin-bottom: 0.75rem;
}

.wire-rss-label {
    font-family: var(--st-mono, monospace);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
    margin-bottom: 0.35rem !important;
}

.wire-source-link {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--st-subtle-border);
    font-size: 0.78rem;
}

.wire-source-link a {
    color: var(--st-accent, #c9a227);
    text-decoration: none;
    font-weight: 600;
}

.wire-source-link a:hover { text-decoration: underline; }

.wire-article-lead {
    margin: 0 0 0.85rem;
}

.wire-article-lead img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--st-subtle-border);
}

.wire-article-content {
    color: var(--st-text-dim, #9aa3b2);
}

.wire-article-content > *:first-child {
    margin-top: 0;
}

.wire-article-content p:empty {
    display: none;
}

.wire-article-content p,
.wire-article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.wire-article-content h1,
.wire-article-content h2,
.wire-article-content h3 {
    color: var(--st-text, #eceff4);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}

.wire-article-content h1 { font-size: 1.05rem; }
.wire-article-content h2 { font-size: 0.98rem; }
.wire-article-content h3 { font-size: 0.92rem; }

.wire-article-content a {
    color: var(--st-accent, #c9a227);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wire-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.wire-article-content blockquote {
    margin: 0.75rem 0;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--st-accent, #c9a227);
    background: var(--st-quote-bg);
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.wire-article-content ul,
.wire-article-content ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.wire-article-original {
    opacity: 0.85;
    font-size: 0.82rem;
}

.wire-detail-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--st-border, rgba(255,255,255,0.1));
    border-radius: 6px;
    background: var(--st-surface-2, #262a31);
    color: var(--st-text-dim, #9aa3b2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.wire-detail-close:hover {
    color: var(--st-text, #eceff4);
    border-color: var(--st-strong-border);
}

.wire-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    min-width: 2rem;
    min-height: 2rem;
    gap: 0;
}

.wire-btn-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wire-btn-icon.active {
    color: var(--st-accent, #c9a227);
    border-color: var(--st-accent-border);
    background: var(--st-accent-muted-bg);
}

.wire-app:fullscreen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ── Toast ── */
.wire-toast {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    z-index: 5000;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: var(--st-surface, #1c1f24);
    border: 1px solid var(--st-accent-border);
    color: var(--st-text, #eceff4);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--st-shadow);
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    max-width: min(360px, calc(100vw - 2rem));
    line-height: 1.4;
}

.wire-toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.wire-toast.success {
    border-color: rgba(52, 168, 83, 0.55);
    background: rgba(26, 61, 40, 0.92);
}

.wire-toast.error {
    border-color: rgba(197, 48, 48, 0.55);
    background: rgba(61, 26, 26, 0.92);
}

.wire-toast.info {
    border-color: var(--st-accent-border);
}

.wire-toast.flash { border-color: rgba(197, 48, 48, 0.6); background: rgba(197, 48, 48, 0.15); }

.wire-row.translated .wire-headline::after {
    content: 'FR';
    display: inline-block;
    margin-left: 0.4rem;
    font-family: var(--st-mono, monospace);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--st-accent, #c9a227);
    vertical-align: middle;
}

.wire-detail-original {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--st-subtle-border);
    font-size: 0.78rem;
    color: var(--st-text-muted, #6b7280);
}

.wire-detail-original summary {
    cursor: pointer;
    font-family: var(--st-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-text-dim, #9aa3b2);
    margin-bottom: 0.5rem;
}

.wire-translate-status {
    font-family: var(--st-mono, monospace);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-accent, #c9a227);
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 4px;
}

.wire-link-btn {
    background: none; border: none; padding: 0; margin: 0;
    color: var(--st-accent, #c9a227); font: inherit; font-weight: 600;
    cursor: pointer; text-decoration: underline;
}

/* ── Top Line (flash/urgent bandeau) ── */
.wire-topline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 1rem;
    background: var(--st-topline-bg);
    border-bottom: 1px solid var(--st-topline-border);
    flex-shrink: 0;
    animation: wire-topline-pulse 1.5s ease infinite;
}
.wire-topline[hidden] { display: none !important; }
.wire-topline.urgent-only {
    background: var(--st-topline-urgent-bg);
    border-bottom-color: var(--st-topline-urgent-border);
    animation: none;
}
.wire-topline-pri {
    font-family: var(--st-mono, monospace);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background: #c53030;
    color: #fff;
    flex-shrink: 0;
}
.wire-topline.urgent-only .wire-topline-pri { background: #ea580c; }
.wire-topline-text {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.wire-topline-text:hover,
.wire-topline-text:focus-visible {
    text-decoration: underline;
    outline: none;
}
.wire-topline-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.wire-btn.sm { padding: 0.25rem 0.5rem; min-height: 1.75rem; font-size: 0.72rem; }
@keyframes wire-topline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

/* ── Sections repliables (navigation + alertes) ── */
.wire-panel-section {
    border: 1px solid var(--st-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    background: var(--st-surface-2, rgba(255, 255, 255, 0.02));
    margin-bottom: 0.45rem;
    overflow: hidden;
}

.wire-panel-section:last-child {
    margin-bottom: 0;
}

.wire-panel-section-head,
.wire-acc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--st-text-muted, #6b7280);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.12s, color 0.12s;
}

.wire-panel-section-head::-webkit-details-marker,
.wire-acc-summary::-webkit-details-marker,
.wire-acc-cat-summary::-webkit-details-marker {
    display: none;
}

.wire-panel-section-head:hover,
.wire-acc-summary:hover {
    background: var(--st-hover);
    color: var(--st-text-dim, #9aa3b2);
}

.wire-panel-section[open] > .wire-panel-section-head,
.wire-acc[open] > .wire-acc-summary {
    color: var(--st-accent, #c9a227);
    border-bottom: 1px solid var(--st-border, rgba(255, 255, 255, 0.06));
}

.wire-panel-section-chevron,
.wire-acc-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    flex-shrink: 0;
    opacity: 0.75;
}

.wire-panel-section[open] > .wire-panel-section-head .wire-panel-section-chevron,
.wire-acc[open] > .wire-acc-summary .wire-acc-chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.wire-panel-section-body,
.wire-acc-body {
    padding: 0.45rem 0.55rem 0.6rem;
}

.wire-acc {
    border-bottom: none;
}

.wire-acc-grow {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wire-acc-grow[open] {
    flex: 1;
}

.wire-acc-summary-row {
    padding-right: 0.5rem;
}

.wire-acc-sources-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.wire-acc-grow[open] .wire-acc-sources-body {
    min-height: 8rem;
}

.wire-nav-scroll,
.wire-side-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.wire-acc-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wire-acc-btn {
    min-height: 1.5rem;
    padding: 0.15rem 0.45rem;
    line-height: 1;
}

.wire-acc-sources-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    padding-bottom: 0.65rem;
}

.wire-source-accordion {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 0.35rem;
}

.wire-source-quick {
    margin-bottom: 0.25rem;
}

.wire-acc-cat {
    border-bottom: none;
    margin-bottom: 0.15rem;
    border-radius: 6px;
    background: var(--st-cat-bg);
}

.wire-acc-cat-summary {
    padding: 0.4rem 0.5rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--st-text-dim, #9aa3b2);
}

.wire-acc-cat[open] > .wire-acc-cat-summary {
    color: var(--st-text, #eceff4);
}

.wire-acc-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.acc-count {
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: var(--st-subtle-bg-2);
    color: var(--st-text-muted, #6b7280);
}

.wire-acc-cat .wire-source-list {
    padding: 0 0.25rem 0.35rem 0.35rem;
}

.wire-nav-list { list-style: none; margin: 0; padding: 0; }
.wire-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    font-size: var(--wire-text-sm, 0.8125rem);
    font-weight: 500;
    line-height: var(--wire-leading-snug, 1.38);
    color: var(--st-text-dim, #9aa3b2);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
.wire-nav-item:hover { background: var(--st-hover); color: var(--st-text, #eceff4); }
.wire-nav-item.active { background: var(--st-accent-soft); color: var(--st-accent, #c9a227); }
.wire-nav-footer { padding: 0.65rem 0.75rem; border-top: 1px solid var(--st-border); flex-shrink: 0; }
.wire-source-item .src-health {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.src-health.ok { background: #22c55e; }
.src-health.warn { background: #eab308; }
.src-health.err { background: #ef4444; }

/* ── Toolbar meta ── */
.wire-toolbar-meta { font-size: var(--wire-text-xs, 0.75rem); color: var(--st-text-muted); font-family: inherit; font-weight: 500; }

/* ── Feed extras ── */
/* ── Mode régie — fil plein écran ── */
.wire-app.regie .wire-body {
    grid-template-columns: 1fr !important;
}

.wire-app.regie .wire-side-panel-nav,
.wire-app.regie .wire-side-panel-alerts {
    display: none !important;
}

.wire-app.regie .wire-main {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.wire-app.regie.detail-bottom .wire-detail.open {
    max-height: 58vh;
}

.wire-app.regie.detail-right .wire-detail {
    width: min(var(--panel-detail-w, 400px), 46vw);
}

.wire-app.regie .wire-topbar {
    padding: 0.35rem 0.85rem;
}

.wire-app.regie .wire-brand span,
.wire-app.regie .wire-badge {
    display: none;
}

.wire-app.regie .wire-feed {
    padding: 0;
}

.wire-app.regie .wire-row {
    grid-template-columns: 6rem 1fr auto;
    padding: 0.7rem 1.25rem;
    gap: 0.85rem;
}

.wire-app.regie .wire-feed-logo,
.wire-app.regie .wire-feed-logo-empty {
    width: 26px;
    height: 26px;
}

.wire-app.regie .wire-headline {
    font-size: var(--wire-text-lg, 1.0625rem);
    line-height: var(--wire-leading-normal, 1.52);
}

.wire-app.regie .wire-row.priority-flash .wire-headline {
    font-size: var(--wire-text-xl, 1.125rem);
    font-weight: 700;
}

.wire-app.regie .wire-row.priority-urgent .wire-headline {
    font-size: var(--wire-text-lg, 1.0625rem);
    font-weight: 600;
}

.wire-app.regie .wire-time {
    font-size: var(--wire-text-sm, 0.8125rem);
}

.wire-app.regie .wire-topline {
    padding: 0.55rem 1.25rem;
}

.wire-app.regie .wire-topline-text {
    font-size: 0.95rem;
}

.wire-app.compact .wire-feed {
    padding: 0;
}

.wire-app.compact .wire-feed--list .wire-row,
.wire-app.compact .wire-feed--headlines .wire-headline-row {
    padding: 0.28rem 0.65rem;
    min-height: 1.85rem;
    grid-template-columns: subgrid;
}

.wire-app.compact .wire-row {
    gap: 0.35rem;
    align-items: center;
}

.wire-app.compact .wire-feed-logo,
.wire-app.compact .wire-feed-logo-empty {
    width: 18px;
    height: 18px;
    padding: 1px;
    border-radius: 4px;
}

.wire-app.compact .wire-time {
    font-size: var(--wire-text-xs, 0.75rem);
    padding-top: 0;
    line-height: var(--wire-leading-snug, 1.38);
}

.wire-app.compact .wire-col-flag .wire-lead-flag,
.wire-app.compact .wire-row-flag-ph {
    width: 22px;
    height: 16px;
    margin-top: 0;
}

.wire-app.compact .wire-row-lead .wire-lead-flag {
    width: 22px;
    height: 16px;
    margin-top: 0;
}

.wire-app.compact .wire-source-tag .wire-flag {
    width: 14px;
    height: 10px;
}

.wire-app.compact .wire-cat-badge {
    font-size: var(--wire-text-xs, 0.75rem);
    padding: 0.06rem 0.32rem;
    display: inline-flex;
}

.wire-app.compact .wire-source-tag {
    font-size: var(--wire-text-xs, 0.75rem);
    padding-top: 0;
    gap: 0.2rem 0.3rem;
}

.wire-app.compact .wire-headline {
    font-size: var(--wire-text-sm, 0.8125rem);
    line-height: var(--wire-leading-snug, 1.38);
    font-weight: 600;
    gap: 0.2rem 0.35rem;
}

.wire-app.compact .wire-row-aside {
    min-width: 2.1rem;
    gap: 0.18rem;
}

.wire-app.compact .wire-row-aside .wire-rss-icon svg {
    width: 11px;
    height: 11px;
}

.wire-app.compact .wire-priority {
    font-size: 0.52rem;
    padding: 0.04rem 0.28rem;
    letter-spacing: 0.04em;
}

.wire-app.compact .wire-badge-ready,
.wire-app.compact .wire-badge-dedup,
.wire-app.compact .wire-badge-forward {
    font-size: 0.5rem;
    padding: 0.04rem 0.22rem;
}

.wire-app.compact .wire-toolbar {
    padding: 0.3rem 0.6rem;
}

.wire-app.compact .wire-toolbar-title {
    font-size: 0.65rem;
}

.wire-app.compact .wire-row.priority-flash,
.wire-app.compact .wire-row.priority-urgent {
    box-shadow: inset 2px 0 0 currentColor;
}

.wire-app.regie.compact .wire-feed--list .wire-row,
.wire-app.regie.compact .wire-feed--headlines .wire-headline-row {
    padding: 0.35rem 0.85rem;
    grid-template-columns: subgrid;
}

.wire-app.regie.compact .wire-row {
    padding: 0.35rem 0.85rem;
}

.wire-app.regie.compact .wire-headline {
    font-size: 0.82rem;
    line-height: 1.25;
}

.wire-app.regie.compact .wire-time {
    font-size: 0.72rem;
}
.wire-badge-ready {
    font-family: var(--st-mono); font-size: 0.55rem; font-weight: 700;
    padding: 0.1rem 0.3rem; border-radius: 3px;
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
}
.wire-badge-dedup {
    font-family: var(--st-mono);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.wire-badge-dedup.exact {
    background: rgba(201, 162, 39, 0.14);
    color: var(--st-accent, #c9a227);
    border-color: rgba(201, 162, 39, 0.4);
}

.wire-badge-dedup.fuzzy {
    background: rgba(56, 139, 253, 0.12);
    color: #7eb8ff;
    border-color: rgba(56, 139, 253, 0.32);
}

.wire-cluster-count.exact {
    color: var(--st-accent, #c9a227);
    border-color: rgba(201, 162, 39, 0.45);
}
.wire-badge-forward {
    font-family: var(--st-mono); font-size: 0.55rem; font-weight: 700;
    padding: 0.1rem 0.3rem; border-radius: 3px;
    background: rgba(201, 162, 39, 0.2); color: var(--st-accent);
}
.wire-row.focused { outline: 2px solid var(--st-accent); outline-offset: -2px; }
.wire-alerts-foot { padding: 0; border-top: none; }
.wire-detail-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }

/* ── Modals ── */
.wire-modal-backdrop {
    position: fixed; inset: 0; background: var(--st-backdrop); z-index: 900;
}
.wire-modal-backdrop[hidden], .wire-modal[hidden] { display: none !important; }
.wire-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 910; width: min(420px, calc(100vw - 2rem));
    background: var(--st-surface, #1c1f24);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    box-shadow: var(--st-modal-shadow);
    max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
}
.wire-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--st-border);
}
.wire-modal-head h2 { margin: 0; font-size: 1rem; }
.wire-modal-close {
    background: none; border: none; color: var(--st-text-dim);
    font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.wire-modal-body { padding: 1rem; overflow-y: auto; flex: 1; }
.wire-modal-foot {
    padding: 0.75rem 1rem; border-top: 1px solid var(--st-border);
    display: flex; gap: 0.5rem; justify-content: flex-end;
}
.wire-prefs-group {
    border: 1px solid var(--st-border); border-radius: 8px;
    padding: 0.65rem 0.75rem; margin: 0 0 0.75rem;
}
.wire-prefs-group legend {
    font-family: var(--st-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-accent);
    padding: 0 0.35rem;
}
.wire-pref-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.82rem;
}
.wire-pref-row input[type="text"], .wire-pref-row select { flex: 1; max-width: 55%; }
.wire-pref-check {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.4rem; font-size: 0.82rem; cursor: pointer;
}
.wire-hint { font-size: 0.72rem; color: var(--st-text-muted); margin: -0.25rem 0 0.65rem; }
.wire-btn.primary { background: var(--st-accent); color: var(--st-on-accent, #141618); border-color: var(--st-accent); }
.wire-shortcuts-grid {
    display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.82rem;
}
.wire-shortcuts-grid kbd {
    font-family: var(--st-mono); font-size: 0.72rem;
    padding: 0.15rem 0.35rem; border-radius: 4px;
    background: var(--st-surface-2); border: 1px solid var(--st-border);
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ── Light theme polish ── */
html[data-theme="light"] .wire-main {
    background: var(--st-surface);
}

html[data-theme="light"] .wire-row:hover {
    background: var(--st-surface-2);
}

html[data-theme="light"] .wire-toolbar {
    background: var(--st-surface);
    border-bottom-color: var(--st-border);
}

html[data-theme="light"] .wire-badge {
    color: var(--st-on-accent);
}
html[data-theme="light"] .wire-side-panel-nav,
html[data-theme="light"] .wire-sources,
html[data-theme="light"] .wire-side-panel-alerts {
    box-shadow: var(--st-panel-shadow);
}

html[data-theme="light"] .wire-trends {
    background: var(--st-surface-2);
    border-bottom-color: var(--st-border);
}

html[data-theme="light"] .wire-trend-chip {
    background: var(--st-surface);
    border-color: var(--st-border);
    color: var(--st-text-dim);
}

html[data-theme="light"] .wire-trend-chip:hover {
    color: var(--st-text);
    background: var(--st-surface);
}

html[data-theme="light"] .wire-alert-count.zero {
    background: var(--st-surface-2);
    border: 1px solid var(--st-border);
}

html[data-theme="light"] .wire-toast.flash {
    border-color: var(--st-danger-soft-border);
    background: var(--st-danger-soft-bg);
    color: var(--st-text);
}

$html[data-theme="light"] ::selection {
    background: var(--fi-selection-bg);
}

/* ── Pro features (wire-features.js) ── */
.wire-stale-banner {
    padding: 0.45rem 1rem;
    background: rgba(185, 28, 28, 0.15);
    border-bottom: 1px solid rgba(185, 28, 28, 0.35);
    color: var(--st-text);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.wire-desk-switch,
.wire-layout-switch {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.wire-toolbar-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.wire-export-wrap { position: relative; margin-left: 0.25rem; }

/* ── Affichage · menu Display ── */
.wire-display-wrap { position: relative; margin-left: 0.25rem; }
.wire-display-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 320;
    width: min(17rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    box-shadow: var(--st-shadow);
    padding: 0.55rem 0.65rem;
}
.wire-display-menu-label {
    margin: 0.35rem 0 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-text-muted);
}
.wire-display-menu-label:first-child { margin-top: 0; }
.wire-display-style-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}
.wire-display-opt {
    padding: 0.35rem 0.4rem;
    border: 1px solid var(--st-border);
    border-radius: 6px;
    background: transparent;
    color: var(--st-text-dim);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
}
.wire-display-opt.wire-btn-icon svg { width: 16px; height: 16px; }
.wire-display-opt:hover { background: var(--st-hover); color: var(--st-text); }
.wire-display-opt.active {
    border-color: var(--st-accent-border);
    background: var(--st-accent-soft-bg, rgba(201, 162, 39, 0.12));
    color: var(--st-text);
}
.wire-display-check,
.wire-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.22rem 0;
    font-size: 0.74rem;
    color: var(--st-text-dim);
    cursor: pointer;
}
.wire-display-row select {
    min-width: 6.5rem;
    font: inherit;
    font-size: 0.72rem;
    padding: 0.18rem 0.35rem;
    border-radius: 5px;
    border: 1px solid var(--st-border);
    background: var(--st-surface-2);
    color: var(--st-text);
}

/* ── Vue cartes (Feeder-style) ── */
.wire-feed--cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
}
.wire-feed--cards .wire-card {
    flex: 1 1 17.5rem;
    max-width: 100%;
    box-sizing: border-box;
}
.wire-feed--cards.wire-feed-cols-1 .wire-card {
    flex: 1 1 100%;
    max-width: 100%;
}
.wire-feed--cards.wire-feed-cols-2 .wire-card {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.375rem);
}
.wire-feed--cards.wire-feed-cols-3 .wire-card {
    flex: 1 1 calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.5rem);
}

.wire-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    align-self: start;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--st-subtle-border);
    border-radius: 10px;
    background: var(--st-card-bg, var(--st-surface));
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.wire-card:hover {
    border-color: var(--st-accent-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.wire-card.selected {
    border-color: var(--st-accent, #c9a227);
    box-shadow: inset 0 0 0 1px var(--st-accent, #c9a227);
}
.wire-card.new-wire {
    background: var(--st-new-bg);
}
.wire-card.priority-flash {
    border-color: var(--st-danger-soft-border, rgba(197, 48, 48, 0.45));
    background: var(--st-flash-bg);
}
.wire-card.priority-urgent {
    border-color: rgba(234, 179, 8, 0.35);
    background: var(--st-urgent-bg, rgba(234, 179, 8, 0.08));
}
.wire-card.focused { outline: 2px solid var(--st-accent); outline-offset: 2px; }

.wire-card-media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: var(--wire-card-aspect, 16 / 9);
    background: var(--st-surface-2, #262a31);
    overflow: hidden;
}
.wire-card-media-empty {
    aspect-ratio: auto;
    min-height: 0;
    background: transparent;
}
.wire-card-media-logo {
    aspect-ratio: auto;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.wire-card-media-fallback {
    aspect-ratio: auto;
    min-height: 3rem;
}
.wire-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wire-card-img-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 8px;
    background: var(--st-thumb-logo-bg);
    padding: 0.35rem;
}
.wire-card-unread {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--st-accent, #c9a227);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.wire-unread-markers {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.45rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.wire-row-unread {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--st-accent, #c9a227);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.wire-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.38rem;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--st-badge-on-accent, #141618);
    background: var(--st-accent, #c9a227);
    border: 1px solid var(--st-accent-border-strong, rgba(201, 162, 39, 0.65));
}

.wire-feed-unread-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--st-accent, #c9a227);
    background: var(--st-accent-muted-bg, rgba(201, 162, 39, 0.12));
    border: 1px solid var(--st-accent-border, rgba(201, 162, 39, 0.35));
}

.wire-feed-unread-badge.zero,
.wire-feed-unread-badge[hidden] {
    display: none !important;
}

.wire-card-title .wire-unread-markers,
.wire-headline.wire-col-title .wire-unread-markers {
    float: left;
    margin-top: 0.15rem;
}

.wire-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 0 1 auto;
    padding: 0.75rem 0.8rem 0.8rem;
    min-width: 0;
}
.wire-feed--cards-compact .wire-card-body {
    padding: 0.55rem 0.65rem 0.65rem;
    gap: 0.32rem;
}
.wire-card-title {
    margin: 0;
    font-size: var(--wire-text-md, 1rem);
    font-weight: 600;
    line-height: var(--wire-leading-normal, 1.52);
    letter-spacing: var(--wire-track-tight, -0.022em);
    color: var(--st-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wire-feed--cards-compact .wire-card-title {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
}
.wire-card-excerpt {
    margin: 0;
    font-size: var(--wire-text-sm, 0.875rem);
    line-height: var(--wire-leading-relaxed, 1.62);
    color: var(--st-text-dim, #9aa3b2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wire-feed--cards-compact .wire-card-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
}
.wire-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.35rem;
    margin-top: auto;
    padding-top: 0.15rem;
    font-size: var(--wire-text-xs, 0.75rem);
    font-weight: 500;
    color: var(--st-text-muted);
}
.wire-card-meta .wire-feed-logo,
.wire-card-meta .wire-source-logo {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
.wire-card-source {
    font-weight: 600;
    color: var(--st-text-dim);
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wire-card-sep { opacity: 0.55; }
.wire-card-meta .wire-cat-badge {
    font-size: 0.62rem;
    padding: 0.06rem 0.32rem;
}
.wire-card-meta .wire-priority {
    margin-left: auto;
    font-size: 0.58rem;
}
.wire-card-rss { line-height: 0; }

/* ── Vue titres seuls (layout subgrid → voir .wire-feed--headlines) ── */
.wire-headline-row:hover { background: var(--st-row-hover); }
.wire-headline-row.selected {
    background: var(--st-selected-bg);
    box-shadow: inset 3px 0 0 var(--st-accent);
}
.wire-headline-row.new-wire { background: var(--st-new-bg); }
.wire-headline-row.priority-flash { background: var(--st-flash-bg); }
.wire-headline-row.priority-urgent { background: var(--st-urgent-bg); }
.wire-headline-row.focused { outline: 2px solid var(--st-accent); outline-offset: -2px; }

@media (max-width: 900px) {
    .wire-feed--cards.wire-feed-cols-2 .wire-card,
    .wire-feed--cards.wire-feed-cols-3 .wire-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.wire-export-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 300;
    min-width: 10rem;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: var(--st-shadow);
    padding: 0.25rem;
}
.wire-export-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.55rem;
    border: none;
    background: transparent;
    color: var(--st-text);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    border-radius: 4px;
}
.wire-export-menu button:hover { background: var(--st-hover); }

.wire-row.pinned,
.wire-card.pinned,
.wire-headline-row.pinned { box-shadow: inset 3px 0 0 var(--st-accent); }
.wire-row.wire-correction,
.wire-card.wire-correction,
.wire-headline-row.wire-correction { background: var(--st-urgent-bg); }
.wire-badge-update {
    font-family: var(--st-mono);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.08rem 0.28rem;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
    margin-left: 0.35rem;
}

.wire-cluster {
    border-bottom: 1px solid var(--st-row-divider);
    padding: 0.55rem 0.85rem;
}
.wire-cluster-head {
    display: grid;
    grid-template-columns: auto 52px 1fr auto auto;
    gap: 0.65rem;
    align-items: start;
    cursor: pointer;
}
.wire-cluster-count {
    font-family: var(--st-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--st-accent);
    padding-top: 0.15rem;
}
.wire-cluster-sources {
    font-size: 0.68rem;
    color: var(--st-text-muted);
    margin-top: 0.2rem;
}
.wire-cluster-body {
    margin-top: 0.45rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--st-border);
}
.wire-cluster-item {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    cursor: pointer;
    font-size: 0.82rem;
    align-items: start;
}
.wire-cluster-item .wire-row-main {
    gap: 0.15rem;
}
.wire-cluster-item:hover { background: var(--st-row-hover); }
.wire-cluster-item-title { font-weight: 600; }

.wire-shift-item {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
}
.wire-shift-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wire-modal-wide { width: min(640px, calc(100vw - 2rem)); }

.wire-summary-meta {
    font-family: var(--st-mono);
    font-size: 0.68rem;
    color: var(--st-text-muted);
    margin-bottom: 0.75rem;
}

.wire-summary-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--st-text);
}

.wire-summary-block {
    margin-bottom: 0.85rem;
}

.wire-summary-block h3 {
    font-family: var(--st-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-accent);
    margin-bottom: 0.35rem;
}

.wire-summary-block ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--st-text-dim);
}

.wire-summary-block li { margin-bottom: 0.35rem; }

.wire-summary-raw {
    font-size: 0.78rem;
    white-space: pre-wrap;
    color: var(--st-text-dim);
}

@media (max-width: 900px) {
    #btnDailySummary .wire-btn-label { display: none; }
}

.wire-modal-sources {
    width: min(920px, calc(100vw - 1.5rem));
    max-height: min(92vh, 900px);
}

.wire-btn-icon-badge { position: relative; }
.wire-btn-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 14px; height: 14px; padding: 0 3px;
    font-size: 0.55rem; font-weight: 800; line-height: 14px;
    text-align: center; border-radius: 8px;
    background: #c0392b; color: #fff;
    box-shadow: 0 0 0 1px var(--st-surface, #1c1f24);
}
.wire-btn-badge[hidden] { display: none !important; }

.wire-feed-dash-stats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem; margin-bottom: 0.75rem;
}
.wire-feed-dash-stat {
    padding: 0.45rem 0.55rem; border-radius: 8px;
    border: 1px solid var(--wire-border, var(--st-border));
    background: var(--st-surface-2, rgba(255,255,255,0.03));
}
.wire-feed-dash-stat strong {
    display: block; font-size: 1.15rem; font-family: var(--st-mono, monospace);
}
.wire-feed-dash-stat span { font-size: 0.62rem; color: var(--st-text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.wire-feed-dash-stat.err strong { color: #ff8a8a; }
.wire-feed-dash-stat.ok strong { color: #6bcb8a; }
.wire-feed-dash-stat.warn strong { color: #e8c547; }

.wire-feed-admin { max-height: 65vh; overflow-y: auto; }
.wire-feed-admin-row { flex-direction: column; align-items: flex-start !important; }

.wire-feed-super-hint { margin: 0 0 0.35rem; font-size: 0.72rem; line-height: 1.35; }
.wire-feed-supervision { display: flex; flex-direction: column; gap: 0.75rem; }
.wire-feed-super-summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
}
.wire-feed-stat {
    font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 4px;
    border: 1px solid var(--wire-border, #333);
}
.wire-feed-stat.ok { color: #6bcb8a; border-color: #2a5a3a; }
.wire-feed-stat.err { color: #ff8a8a; border-color: #5a2a2a; }
.wire-feed-stat.warn { color: #e8c547; border-color: #5a4a1a; }
.wire-feed-stat.muted { color: var(--wire-muted, #888); }
.wire-feed-stat.off { color: var(--wire-muted, #888); opacity: 0.75; }
.wire-feed-super-poll { margin-left: auto; font-size: 0.72rem; color: var(--wire-muted, #888); }
.wire-btn-sm { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
.wire-feed-super-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wire-feed-super-filters .wire-search { flex: 1; min-width: 8rem; }
.wire-select-sm {
    font-size: 0.78rem; padding: 0.35rem 0.5rem;
    background: var(--wire-surface, #1a1a1a); color: inherit;
    border: 1px solid var(--wire-border, #333); border-radius: 4px;
}
.wire-feed-super-table-wrap { overflow-x: auto; max-height: 48vh; overflow-y: auto; }
.wire-feed-super-table {
    width: 100%; border-collapse: collapse; font-size: 0.78rem;
}
.wire-feed-super-table th,
.wire-feed-super-table td {
    padding: 0.35rem 0.4rem; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--wire-border, #2a2a2a);
}
.wire-feed-super-table th { position: sticky; top: 0; background: var(--wire-bg, #111); z-index: 1; }
.wire-feed-super-table td strong { display: block; font-size: 0.82rem; }
.wire-feed-status {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em; padding: 0.1rem 0.35rem; border-radius: 3px;
}
.wire-feed-status.ok { background: #1a3d28; color: #8fdfaa; }
.wire-feed-status.err { background: #3d1a1a; color: #ffaaaa; }
.wire-feed-status.warn { background: #3d351a; color: #e8d070; }
.wire-feed-status.muted, .wire-feed-status.off { background: #2a2a2a; color: #999; }
.wire-feed-status.api { background: #1a2a3d; color: #8ab4ff; }
.wire-feed-super-row.err td:first-child + td strong { color: #ffaaaa; }

.wire-ingest-log {
    border: 1px solid var(--wire-border, #2a2a2a);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    background: var(--wire-surface, #141414);
}
.wire-ingest-log summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    user-select: none;
}
.wire-ingest-log-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0.5rem 0 0.35rem;
}
.wire-ingest-log-activity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--wire-muted, #888);
    cursor: pointer;
}
.wire-ingest-log-list {
    max-height: 14rem;
    overflow-y: auto;
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: 0.68rem;
    line-height: 1.45;
    border-top: 1px solid var(--wire-border, #2a2a2a);
    padding-top: 0.35rem;
}
.wire-ingest-log-line {
    padding: 0.12rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--wire-muted, #aaa);
}
.wire-ingest-log-line.run { color: #9ecfff; }
.wire-ingest-log-line.new { color: #8fdfaa; }
.wire-ingest-log-line.err { color: #ffaaaa; }
.wire-ingest-log-line.skip { color: #888; font-style: italic; }
.wire-ingest-lane {
    display: inline-block;
    min-width: 2.8rem;
    font-weight: 700;
    color: var(--wire-text, #ccc);
}
.wire-ingest-log-empty { margin: 0.35rem 0; font-size: 0.72rem; }
.wire-feed-super-row.warn td:first-child + td strong { color: #e8d070; }

.wire-kind-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    flex-shrink: 0;
    line-height: 1.2;
}
.wire-kind-badge-sm { font-size: 0.54rem; padding: 0.06rem 0.28rem; }
.wire-kind-rss { background: #1a3d2e; color: #7dffb8; }
.wire-kind-bsky { background: #1038a0; color: #9ec5ff; }
.wire-kind-wire { background: #4a2800; color: #ffc266; border: 1px solid #8a5a10; }
.wire-kind-gnews { background: #2a2040; color: #c9b8ff; }
.wire-kind-social { background: #1f2a35; color: #9ecae0; border: 1px solid #3a5060; }
.wire-kind-other { background: #2a2a2a; color: #aaa; }
.wire-source-tag > .wire-kind-badge,
.wire-source-list .wire-kind-badge { margin-right: 0.25rem; }
.wire-src-card-head .wire-kind-badge {
    align-self: flex-start;
    margin-left: auto;
    margin-right: 0.35rem;
}
.wire-feed-super-type .wire-kind-badge {
    margin-right: 0.35rem;
    vertical-align: middle;
}

.wire-badge-platform {
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.04em;
    padding: 0.08rem 0.32rem; border-radius: 999px; margin-left: 0;
    flex-shrink: 0;
}
.wire-platform-bluesky { background: #1038a0; color: #9ec5ff; }
.wire-platform-mastodon { background: #2a1a4a; color: #c4a0ff; }
.wire-platform-telegram { background: #0a3d5c; color: #6ecbff; }
.wire-platform-x { background: #1a1a1a; color: #e7e7e7; border: 1px solid #444; }
.wire-platform-youtube { background: #5c1010; color: #ffb4b4; }

.wire-kind-youtube { background: #5c1010; color: #ffd0d0; border-color: #8b2020; }

.wire-yt-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 0.85rem;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.wire-yt-play {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.wire-yt-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wire-yt-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.wire-yt-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.wire-yt-fallback {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    text-align: center;
}
.wire-yt-fallback a {
    color: var(--st-text-dim);
    text-decoration: none;
}
.wire-yt-fallback a:hover {
    color: var(--st-accent, #c9a227);
    text-decoration: underline;
}
.wire-yt-external-only .wire-yt-open {
    display: block;
    text-decoration: none;
    color: inherit;
}
.wire-yt-notice {
    margin: 0.45rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: center;
    color: var(--st-text-dim);
}

.wire-src-tabs {
    display: flex; gap: 0.35rem; padding: 0 1rem 0.65rem;
    border-bottom: 1px solid var(--wire-border, var(--st-border));
}
.wire-src-tab {
    font: inherit; font-size: 0.78rem; font-weight: 600;
    padding: 0.35rem 0.75rem; border-radius: 6px;
    border: 1px solid transparent; background: transparent; color: var(--st-text-dim);
    cursor: pointer;
}
.wire-src-tab.active {
    color: inherit; background: var(--st-surface-2, rgba(255,255,255,0.05));
    border-color: var(--wire-border, var(--st-border));
}

.wire-src-catalog { display: flex; flex-direction: column; gap: 0.75rem; }
.wire-src-catalog-head {
    display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; justify-content: space-between;
}
.wire-src-catalog-stats {
    display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; color: var(--st-text-dim);
}
.wire-src-catalog-stats strong { color: inherit; font-family: var(--st-mono, monospace); }
.wire-src-catalog-actions {
    display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; flex: 1; justify-content: flex-end;
}
.wire-src-catalog-actions .wire-search { flex: 1; min-width: 9rem; max-width: 16rem; }

.wire-src-catalog-filters,
.wire-feed-super-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: flex-end;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--st-border, var(--wire-border, #333));
    background: var(--st-surface-2, rgba(255,255,255,0.02));
}
.wire-src-filter {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    min-width: 9rem;
}
.wire-src-filter-label {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--st-text-dim);
    font-size: 0.62rem;
}
.wire-src-filter .wire-select-sm { min-width: 10rem; }

.wire-lane-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--st-border);
    background: var(--st-surface-2, rgba(255,255,255,0.03));
}
.wire-lane-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-text-dim);
    margin-right: 0.15rem;
}
.wire-lane-btn.active {
    background: var(--st-accent-soft, rgba(201, 162, 39, 0.15));
    color: var(--st-accent, #c9a227);
    border-color: var(--st-accent-border, rgba(201, 162, 39, 0.35));
}

.wire-src-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.55rem; max-height: 52vh; overflow-y: auto; padding-right: 0.15rem;
}
.wire-src-card {
    border: 1px solid var(--wire-border, var(--st-border));
    border-radius: 8px; padding: 0.55rem 0.65rem;
    background: var(--st-surface-2, rgba(255,255,255,0.02));
    display: flex; flex-direction: column; gap: 0.35rem;
}
.wire-src-card.off { opacity: 0.62; }
.wire-src-card-head {
    display: flex; gap: 0.45rem; align-items: flex-start;
}
.wire-src-favicon {
    width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0; object-fit: contain;
}
.wire-src-card-head strong { display: block; font-size: 0.82rem; line-height: 1.25; }
.wire-src-toggle {
    margin-left: auto; display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--st-text-dim);
}
.wire-src-url { margin: 0; font-size: 0.68rem; word-break: break-all; }
.wire-src-url a { color: var(--st-text-dim); }
.wire-src-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-top: auto;
}
.wire-src-kind {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--st-text-dim);
}
.wire-src-card-btns { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.wire-btn.danger { color: #ff8a8a; border-color: #5a2a2a; }

.wire-src-form .wire-pref-row { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.wire-src-form .wire-pref-row input { max-width: none; width: 100%; }
.wire-src-url-row { display: flex; gap: 0.35rem; width: 100%; }
.wire-src-url-row input { flex: 1; min-width: 0; }

.wire-rss-extract-hint { margin: 0.5rem 0 0; font-size: 0.72rem; }
.wire-detail-actions .wire-btn-icon.active { color: var(--st-accent, #c9a227); }

/* ── Vues pleine page (sans modales) ── */
.wire-views {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wire-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wire-view[hidden] { display: none !important; }

.wire-view-page { background: var(--st-bg, #141618); }

.wire-page-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.65rem clamp(0.75rem, 2vw, 1.25rem);
    border-bottom: 1px solid var(--st-border, rgba(255,255,255,0.1));
    background: var(--st-surface, #1c1f24);
    flex-shrink: 0;
}
.wire-page-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    flex: 1;
    min-width: 8rem;
}
.wire-page-tabs { margin-left: auto; }
.wire-page-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    width: 100%;
    box-sizing: border-box;
}
.wire-page-content { max-width: 1200px; }

/* Paramètres, catalogue, supervision — pleine largeur */
#viewSettings .wire-page-scroll,
#viewSources .wire-page-scroll {
    padding-left: clamp(0.75rem, 1.5vw, 1rem);
    padding-right: clamp(0.75rem, 1.5vw, 1rem);
}
#viewSettings .wire-settings-page,
#viewSources .wire-page-content,
#viewSources .wire-src-edit-section {
    max-width: none;
    width: 100%;
}
#viewSettings .wire-settings-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
}
#viewSettings .wire-settings-page .wire-prefs-group {
    margin: 0;
}
#viewSettings .wire-pref-row input[type="text"],
#viewSettings .wire-pref-row select {
    max-width: none;
}
#viewSources .wire-feed-admin {
    max-height: none;
    overflow: visible;
    width: 100%;
}
#viewSources .wire-src-grid {
    max-height: none;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
#viewSources .wire-feed-super-table-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
}
#viewSources .wire-feed-supervision,
#viewSources .wire-src-catalog {
    width: 100%;
}
#viewSources .wire-src-catalog-actions .wire-search {
    max-width: none;
    flex: 1 1 12rem;
}

.wire-settings-page {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wire-settings-page .wire-shortcuts-grid { margin-top: 0.35rem; }

.wire-src-edit-section {
    max-width: 920px;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--st-border);
    background: var(--st-surface, #1c1f24);
}
.wire-src-edit-section[hidden] { display: none !important; }
.wire-src-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.wire-src-edit-head h2 { margin: 0; font-size: 0.95rem; }
.wire-src-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem 1rem;
}
.wire-src-field-wide { grid-column: 1 / -1; }
.wire-src-form-submit { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.wire-inline-form {
    margin-top: 0.65rem;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--st-border);
    background: var(--st-surface-2, rgba(255,255,255,0.03));
}
.wire-inline-form[hidden] { display: none !important; }
.wire-inline-form-title { margin: 0 0 0.5rem; font-size: 0.82rem; font-weight: 700; }
.wire-inline-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.wire-inline-form .wire-field-invalid {
    border-color: rgba(197, 48, 48, 0.75) !important;
    box-shadow: 0 0 0 2px rgba(197, 48, 48, 0.2);
}

.wire-inline-form-error {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #f87171;
}

body[data-wire-view="sources"] .wire-trends,
body[data-wire-view="sources"] .wire-topline,
body[data-wire-view="settings"] .wire-trends,
body[data-wire-view="settings"] .wire-topline { display: none; }

#btnSettings[aria-pressed="true"],
#btnSourcesDashboard[aria-pressed="true"] {
    background: var(--st-accent-soft);
    color: var(--st-accent, #c9a227);
}

/* ══════════════════════════════════════════════════════════
   Mobile & tablette — dock, sheets, layout adaptatif
   ══════════════════════════════════════════════════════════ */

.wire-mobile-nav-btn,
.wire-mobile-more-btn,
.wire-mobile-dock,
.wire-mobile-sheet,
.wire-alerts-backdrop,
.wire-mobile-panel-close {
    display: none;
}

.wire-topbar-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.wire-alerts-backdrop {
    position: fixed;
    inset: 0;
    top: var(--wire-chrome-top, 52px);
    z-index: 215;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    backdrop-filter: blur(2px);
}

.wire-alerts-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Tablette & mobile (≤1100px) ── */
@media (max-width: 1100px) {
    .wire-mobile-nav-btn,
    .wire-mobile-more-btn,
    .wire-mobile-dock {
        display: flex;
    }

    .wire-mobile-panel-close {
        display: inline-flex;
    }

    .wire-side-panel-collapse {
        display: none !important;
    }

    .wire-topbar-tools {
        display: none;
    }

    .wire-topbar-left {
        gap: 0.45rem;
    }

    .wire-badge,
    .wire-clock {
        display: none;
    }

    .wire-main {
        padding-bottom: calc(3.65rem + env(safe-area-inset-bottom, 0px));
    }

    .wire-topbar {
        padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
    }

    /* Navigation — drawer plein écran */
    .wire-side-panel-nav {
        width: min(92vw, 360px);
        max-width: 100%;
    }

    .wire-side-panel-nav:not(.open) {
        pointer-events: none;
    }

    .wire-side-panel-nav:not(.open) .wire-side-panel-head,
    .wire-side-panel-nav:not(.open) .wire-side-panel-body {
        display: none;
    }

    .wire-side-panel-nav.open {
        pointer-events: auto;
        inset: var(--wire-chrome-top, 52px) auto 0 0;
        position: fixed;
        z-index: 220;
        width: min(92vw, 360px);
        max-width: 100%;
        box-shadow: 8px 0 36px rgba(0, 0, 0, 0.38);
    }

    .wire-side-panel-nav.open .wire-side-panel-head {
        border-radius: 0;
    }

    /* Alertes — panneau latéral tablette */
    .wire-side-panel-alerts {
        display: flex !important;
        position: fixed;
        top: var(--wire-chrome-top, 52px);
        right: 0;
        bottom: 0;
        left: auto;
        width: min(400px, 92vw);
        z-index: 220;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: -8px 0 36px rgba(0, 0, 0, 0.38);
    }

    .wire-app.alerts-mobile-open .wire-side-panel-alerts {
        transform: translateX(0);
    }

    /* Détail plein écran */
    .wire-app.detail-bottom .wire-detail.open,
    .wire-app.detail-right .wire-detail.open {
        position: fixed;
        inset: var(--wire-chrome-top, 52px) 0 0 0;
        z-index: 260;
        width: 100% !important;
        max-height: none !important;
        border: none;
        border-top: 2px solid var(--st-accent, #c9a227);
    }

    .wire-app.detail-bottom .wire-detail.open .wire-detail-body,
    .wire-app.detail-right .wire-detail.open .wire-detail-body {
        max-height: none;
    }

    .wire-detail-resize {
        display: none;
    }

    .wire-toolbar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .wire-lane-switch {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .wire-lane-switch::-webkit-scrollbar {
        display: none;
    }

    body.wire-alerts-scroll-lock,
    body.wire-mobile-sheet-lock {
        overflow: hidden;
    }
}

/* ── Smartphone (≤640px) ── */
@media (max-width: 640px) {
    .wire-brand span:not(.wire-i) {
        font-size: 0.92rem;
    }

    .wire-status span:last-child {
        display: none;
    }

    .wire-side-panel-nav.open {
        width: 100vw;
    }

    /* Alertes — bottom sheet */
    .wire-side-panel-alerts {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(88dvh, calc(100dvh - var(--wire-chrome-top, 52px) - 3.5rem));
        border-radius: 16px 16px 0 0;
        border-left: none;
        transform: translateY(calc(100% + 4rem));
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .wire-app.alerts-mobile-open .wire-side-panel-alerts {
        transform: translateY(0);
    }

    .wire-topline {
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.45rem 0.65rem;
    }

    .wire-topline-text {
        flex: 1 1 100%;
        text-align: left;
    }

    .wire-feed--list,
    .wire-feed--headlines {
        display: block;
    }

    .wire-feed--list .wire-row,
    .wire-feed--headlines .wire-headline-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "time aside"
            "source source"
            "title title";
        gap: 0.35rem 0.5rem;
        padding: 0.75rem 0.85rem;
        align-items: start;
    }

    .wire-feed--list .wire-col-time,
    .wire-feed--headlines .wire-col-time { grid-area: time; }
    .wire-feed--list .wire-col-flag,
    .wire-feed--headlines .wire-col-flag { display: none; }
    .wire-feed--list .wire-col-theme,
    .wire-feed--headlines .wire-col-theme { display: none; }
    .wire-feed--list .wire-col-source,
    .wire-feed--headlines .wire-col-source { grid-area: source; }
    .wire-feed--list .wire-col-title,
    .wire-feed--headlines .wire-col-title { grid-area: title; }
    .wire-feed--list .wire-col-aside,
    .wire-feed--headlines .wire-col-aside {
        grid-area: aside;
        justify-self: end;
    }

    .wire-feed--cards .wire-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .wire-detail-head {
        flex-wrap: wrap;
    }

    .wire-detail-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .wire-detail-head h3 {
        font-size: 1rem;
    }

    .wire-yt-embed {
        aspect-ratio: 16 / 9;
    }

    .wire-page-bar {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .wire-page-title {
        font-size: 1rem;
    }
}

/* ── Bottom dock ── */
.wire-mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: var(--st-surface, #1c1f24);
    border-top: 1px solid var(--st-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}

.wire-dock-btn {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 2.85rem;
    padding: 0.25rem 0.35rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--st-text-dim, #9aa3b2);
    font: inherit;
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background 0.12s, color 0.12s;
}

.wire-dock-btn:hover,
.wire-dock-btn.active {
    background: var(--st-accent-soft, rgba(201, 162, 39, 0.12));
    color: var(--st-accent, #c9a227);
}

.wire-dock-icon svg {
    width: 18px;
    height: 18px;
}

.wire-dock-badge {
    position: absolute;
    top: 0.15rem;
    right: calc(50% - 1.35rem);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--st-danger, #c53030);
    color: #fff;
    font-family: var(--st-mono, monospace);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--st-surface, #1c1f24);
}

.wire-dock-badge.zero,
.wire-dock-badge[hidden] {
    display: none !important;
}

/* ── Mobile tools sheet ── */
.wire-mobile-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 230;
    flex-direction: column;
    max-height: min(72dvh, calc(100dvh - var(--wire-chrome-top, 52px)));
    background: var(--st-surface, #1c1f24);
    border-top: 1px solid var(--st-border, rgba(255, 255, 255, 0.12));
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.42);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wire-mobile-sheet.open {
    display: flex;
    transform: translateY(0);
}

.wire-mobile-sheet-handle {
    width: 2.25rem;
    height: 0.28rem;
    margin: 0.45rem auto 0;
    border-radius: 999px;
    background: var(--st-border, rgba(255, 255, 255, 0.2));
}

.wire-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem 0.35rem;
}

.wire-mobile-sheet-head h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 650;
}

.wire-mobile-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.35rem 0.85rem 0.85rem;
    overflow-y: auto;
}

.wire-mobile-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 4.25rem;
    padding: 0.45rem 0.35rem;
    border: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    background: var(--st-surface-2, rgba(255, 255, 255, 0.03));
    color: var(--st-text, #eceff4);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
}

.wire-mobile-tool span[data-wire-icon] svg {
    width: 18px;
    height: 18px;
}

.wire-mobile-tool:active {
    background: var(--st-accent-soft);
    color: var(--st-accent);
}

@media (max-width: 380px) {
    .wire-mobile-sheet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Masquer dock sur vues admin */
body[data-wire-view="sources"] .wire-mobile-dock,
body[data-wire-view="settings"] .wire-mobile-dock {
    display: none !important;
}

body[data-wire-view="sources"] .wire-main,
body[data-wire-view="settings"] .wire-main {
    padding-bottom: 0;
}
