/* ─────────────────────────────────────────────────────────────────────────────
   Import progress banner — fixed at top of <main>, compact horizontal strip.
   Visível enquanto há jobs ativos em /active-imports. Some quando lista vazia.
───────────────────────────────────────────────────────────────────────────── */

.wt-import-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(180deg,
        color-mix(in oklch, var(--wt-primary) 14%, var(--wt-bg-2)),
        color-mix(in oklch, var(--wt-primary) 8%, var(--wt-bg-2)));
    border-bottom: 1px solid color-mix(in oklch, var(--wt-primary) 25%, var(--wt-border));
    font-size: 12.5px;
    color: var(--wt-fg-1, var(--wt-fg));
    user-select: none;
    position: relative;
    z-index: 30;
}

.wt-import-banner-spinner {
    display: inline-flex;
    align-items: center;
    color: var(--wt-primary);
    animation: wt-spin 1.05s linear infinite;
}

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

.wt-import-banner-title {
    font-weight: 600;
    color: var(--wt-fg);
    letter-spacing: 0.01em;
}

.wt-import-banner-sep {
    color: var(--wt-fg-4);
    font-weight: 400;
}

.wt-import-banner-channel {
    font-weight: 500;
    color: var(--wt-fg);
}

.wt-import-banner-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wt-fg-2);
    font-variant-numeric: tabular-nums;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wt-import-banner-stat {
    color: var(--wt-fg-2);
}

.wt-import-banner-dot {
    color: var(--wt-fg-4);
}

.wt-import-banner-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--wt-primary);
    color: white;
    border: 0;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.12s ease;
    line-height: 1.4;
}
.wt-import-banner-btn:hover { filter: brightness(1.08); }
.wt-import-banner-btn:active { filter: brightness(0.94); }

.wt-import-banner-more {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--wt-bg-3);
    border: 1px solid var(--wt-border);
    color: var(--wt-fg-2);
    font-size: 11px;
    font-weight: 600;
    cursor: default;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Toast host — fixed bottom-right stack.
───────────────────────────────────────────────────────────────────────────── */

.wt-toast-host {
    position: fixed;
    bottom: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    max-width: min(440px, 92vw);
    pointer-events: none;
}

.wt-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--wt-bg, var(--wt-card));
    border: 1px solid var(--wt-border);
    border-left-width: 3px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    font-size: 13px;
    color: var(--wt-fg);
    line-height: 1.45;
    min-width: 280px;
    animation: wt-toast-in 0.18s ease-out;
}

@keyframes wt-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wt-toast-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.wt-toast-msg {
    flex: 1;
    word-break: break-word;
}

.wt-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--wt-fg-4);
    padding: 2px;
    line-height: 0;
    border-radius: 4px;
    transition: color 0.12s ease, background 0.12s ease;
}
.wt-toast-close:hover { color: var(--wt-fg); background: var(--wt-bg-3); }

.wt-toast--success {
    border-left-color: oklch(0.72 0.16 150);
}
.wt-toast--success .wt-toast-icon { color: oklch(0.72 0.16 150); }

.wt-toast--error {
    border-left-color: oklch(0.70 0.20 25);
}
.wt-toast--error .wt-toast-icon { color: oklch(0.70 0.20 25); }

.wt-toast--info {
    border-left-color: var(--wt-primary);
}
.wt-toast--info .wt-toast-icon { color: var(--wt-primary); }

/* ─────────────────────────────────────────────────────────────────────────────
   Deep-sync checkbox — pequena explicação rica abaixo de "Conectar".
───────────────────────────────────────────────────────────────────────────── */

.wt-deepsync-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: var(--wt-bg-2);
    border: 1px solid var(--wt-border);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}
.wt-deepsync-toggle input[type=checkbox] {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: var(--wt-primary);
}
.wt-deepsync-toggle .wt-deepsync-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wt-deepsync-toggle .wt-deepsync-label {
    font-size: 12.5px;
    color: var(--wt-fg);
    font-weight: 500;
}
.wt-deepsync-toggle .wt-deepsync-hint {
    font-size: 11px;
    color: var(--wt-fg-3);
    line-height: 1.45;
}
