/* ═══════════════════════════════════════════════════════════════════
   Ad Classifier Modal
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────────────── */

.ad-classifier-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-classifier-modal.hidden { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
}

/* ── Dialog shell ────────────────────────────────────────────────── */

.modal-dialog {
    position: relative;
    background: #16162a;
    border: 1px solid #2e2e48;
    border-radius: 10px;
    width:  min(98vw, 1500px);
    height: min(92vh,  860px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────────────── */

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px 12px;
    border-bottom: 1px solid #2e2e48;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e2e2f0;
    letter-spacing: 0.01em;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-ai-btn {
    background: linear-gradient(135deg, #3a2a6a, #2a3a6a);
    border: 1px solid #5a4a9a;
    border-radius: 5px;
    color: #c0b0f0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    opacity: 0.5;
    letter-spacing: 0.02em;
    cursor: not-allowed;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}
.modal-close:hover { color: #e2e2f0; background: #2a2a42; }

/* ── Body: two columns ───────────────────────────────────────────── */

.modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Left column */
.modal-left {
    width: 460px;
    flex-shrink: 0;
    border-right: 1px solid #2e2e48;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 14px;
    gap: 12px;
}

/* Right column */
.modal-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 24px;
    gap: 20px;
}

/* ── Mini player ─────────────────────────────────────────────────── */

.modal-frame-previews { flex-shrink: 0; }

.mini-player {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-player img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #2e2e48;
    background: #0a0a18;
    display: block;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-play-btn {
    background: none;
    border: 1px solid #2e2e48;
    border-radius: 4px;
    color: #c0c0d8;
    font-size: 13px;
    cursor: pointer;
    padding: 3px 9px;
    flex-shrink: 0;
}
.mini-play-btn:hover { background: #2a2a42; color: #e2e2f0; }

#mini-scrubber {
    flex: 1;
    height: 3px;
    accent-color: #5a8dee;
    cursor: pointer;
}

.mini-counter {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

#mini-fps {
    background: #0e0e1e;
    border: 1px solid #2e2e48;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    padding: 2px 5px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Frame range controls ────────────────────────────────────────── */

.frame-range-controls {
    background: #0e0e1e;
    border: 1px solid #2e2e48;
    border-radius: 6px;
    padding: 10px;
    flex-shrink: 0;
}

.frame-endpoint-pair {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Each start/end endpoint column */
.frame-endpoint {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.frame-endpoint-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}

.frame-endpoint-label {
    font-size: 9px;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.frame-endpoint-time {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: #8898cc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

/* Thumbnail */
.frame-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #2e2e48;
    background: #0a0a18;
    display: block;
    cursor: default;
}
.frame-thumb.active-seek {
    border-color: #5a8dee;
    box-shadow: 0 0 0 2px rgba(90,141,238,.3);
}

/* Adjust buttons */
.frame-adj-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.frame-adj-btn {
    flex: 1;
    background: #1a1a30;
    border: 1px solid #2e2e48;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
    line-height: 1;
    transition: color 0.1s, background 0.1s, border-color 0.1s;
}
.frame-adj-btn:hover  { background: #2a2a42; color: #e2e2f0; border-color: #5a8dee; }
.frame-adj-btn:active { background: #5a8dee; color: #fff;    border-color: #5a8dee; }

/* Separator between start and end */
.frame-endpoint-sep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    flex-shrink: 0;
}

.frame-duration-badge {
    font-size: 10px;
    color: #555;
    background: #1a1a30;
    border: 1px solid #2e2e48;
    border-radius: 10px;
    padding: 3px 7px;
    white-space: nowrap;
    text-align: center;
}

/* ── Occurrences panel ───────────────────────────────────────────── */

.occurrences-panel {
    flex: 1;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    border: 1px solid #2e2e48;
    border-radius: 6px;
    overflow: hidden;
}

.occurrences-title {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 10px 6px;
    border-bottom: 1px solid #2e2e48;
    background: #0e0e1e;
    flex-shrink: 0;
}

.occurrences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px 5px;
    border-bottom: 1px solid #2e2e48;
    background: #0e0e1e;
    flex-shrink: 0;
}
.occurrences-header .occurrences-title { padding: 0; border-bottom: none; background: none; }

.full-scan-btn {
    font-size: 10px;
    padding: 3px 9px;
    background: none;
    border: 1px solid rgba(90,141,238,.4);
    border-radius: 4px;
    color: #5a8dee;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s;
}
.full-scan-btn:hover:not(:disabled) { background: rgba(90,141,238,.15); color: #8ab8ff; }
.full-scan-btn:disabled { color: #444; border-color: #333; cursor: default; }
.full-scan-btn.hidden { display: none; }

.occurrences-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.occ-placeholder {
    padding: 14px 12px;
    font-size: 11px;
    color: #444;
    text-align: center;
}

.occ-scanning {
    padding: 12px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

.occ-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px;
    font-size: 12px;
    color: #a0a0b8;
    border-bottom: 1px solid #1a1a34;
    cursor: pointer;
    transition: background 0.1s;
}
.occ-item:last-child { border-bottom: none; }
.occ-item:hover { background: #1e1e34; color: #e2e2f0; }

.occ-item-time   { font-variant-numeric: tabular-nums; color: #5a8dee; flex-shrink: 0; font-weight: 600; }
.occ-item-label  { flex: 1; font-size: 11px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ-item-self   { font-size: 10px; color: #555; flex-shrink: 0; }

.occ-empty { padding: 14px 12px; font-size: 11px; color: #444; text-align: center; }

/* ── Form fields ─────────────────────────────────────────────────── */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.field-required { color: #e05050; font-size: 13px; font-weight: 700; }
.field-optional { font-weight: 400; text-transform: none; color: #444; font-size: 10px; }

/* Shared text-input appearance */
#advertiser-search,
#campaign-search,
#creative-description,
#tag-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    background: #0e0e1e;
    border: 1px solid #2e2e48;
    border-radius: 5px;
    color: #e2e2f0;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}
#advertiser-search:focus,
#campaign-search:focus,
#creative-description:focus { border-color: #5a8dee; }

#advertiser-search.input-error { border-color: #e05050; }

.advertiser-error {
    display: none;
    font-size: 11px;
    color: #e05050;
    margin-top: -2px;
}

/* ── Entity selected-state chip ──────────────────────────────────── */
/* Shown for brand and campaign once a value is chosen               */

.entity-selected-state {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(90,141,238,.08);
    border: 1px solid rgba(90,141,238,.3);
    border-radius: 6px;
    padding: 8px 12px;
}
.entity-selected-state.hidden { display: none; }

#brand-search-wrap.hidden { display: none; }

.entity-chip-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #c8d8f8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-change-btn {
    background: none;
    border: 1px solid rgba(90,141,238,.4);
    border-radius: 4px;
    color: #5a8dee;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 9px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s;
}
.entity-change-btn:hover { background: rgba(90,141,238,.15); color: #8ab8ff; }

.entity-deselect-btn {
    background: none;
    border: none;
    color: #444;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: color 0.1s;
}
.entity-deselect-btn:hover { color: #e05050; }

/* ── Brand suggestion dropdown ───────────────────────────────────── */

.advertiser-search-wrap,
.campaign-search-wrap { position: relative; }

.campaign-search-wrap.hidden { display: none; }

#advertiser-suggestions,
#campaign-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0; right: 0;
    background: #1a1a2e;
    border: 1px solid #2e2e48;
    border-radius: 5px;
    max-height: 210px;
    overflow-y: auto;
    z-index: 20;
    list-style: none;
    margin: 0; padding: 4px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#advertiser-suggestions li,
#campaign-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #e2e2f0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
}
#advertiser-suggestions li:hover,
#campaign-suggestions li:hover { background: #2a2a42; }

#advertiser-suggestions li.add-new,
#campaign-suggestions li.add-new  { color: #5a8dee; }

.adv-sugg-name { flex: 1; }

/* Campaign item edit/delete actions */
#campaign-suggestions li.campaign-item { justify-content: space-between; padding: 6px 12px; }
#campaign-suggestions li.campaign-item .campaign-item-name { flex: 1; cursor: pointer; }

.campaign-inline-edit {
    flex: 1; background: #1a1a2e; border: 1px solid #5a8dee;
    color: #e2e2f0; border-radius: 4px; padding: 2px 6px; font-size: 13px;
}

.adv-sugg-edit {
    display: none;
    background: none;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}
#advertiser-suggestions li:hover .adv-sugg-edit { display: block; }
.adv-sugg-edit:hover { color: #e2e2f0; background: #3a3a5a; }

/* Inline brand rename editor (inside dropdown row) */
.adv-inline-edit {
    display: flex;
    gap: 6px;
    padding: 3px 0;
    align-items: center;
    width: 100%;
}
.adv-inline-edit input {
    flex: 1;
    background: #0e0e1e;
    border: 1px solid #5a8dee;
    border-radius: 4px;
    color: #e2e2f0;
    font-size: 12px;
    padding: 4px 8px;
    outline: none;
    min-width: 0;
}
.adv-inline-save,
.adv-inline-cancel {
    background: none;
    border: 1px solid #2e2e48;
    border-radius: 3px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 7px;
    white-space: nowrap;
    flex-shrink: 0;
}
.adv-inline-save   { color: #5a8dee; border-color: #5a8dee; }
.adv-inline-save:hover   { background: rgba(90,141,238,.15); }
.adv-inline-cancel:hover { color: #e2e2f0; }

/* "No brand" hint under campaign */
.campaign-no-brand {
    font-size: 11px;
    color: #444;
    padding: 2px 0;
}
.campaign-no-brand.hidden { display: none; }

/* ── Tag chip input ──────────────────────────────────────────────── */

.tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background: #0e0e1e;
    border: 1px solid #2e2e48;
    border-radius: 5px;
    min-height: 40px;
    cursor: text;
    transition: border-color 0.15s;
}
.tag-input-wrap:focus-within { border-color: #5a8dee; }

.tag-chips { display: contents; }

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2a2a52;
    border: 1px solid #3a3a72;
    border-radius: 4px;
    padding: 3px 7px 3px 8px;
    font-size: 12px;
    color: #c0b0f0;
    white-space: nowrap;
    max-width: 200px;
}
.tag-chip-text { overflow: hidden; text-overflow: ellipsis; }
.tag-chip-remove {
    background: none;
    border: none;
    color: #664;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    border-radius: 2px;
}
.tag-chip-remove:hover { color: #e05050; }

#tag-input {
    flex: 1;
    min-width: 80px;
    background: none;
    border: none;
    outline: none;
    color: #e2e2f0;
    font-size: 13px;
    padding: 2px 3px;
}

.tag-hint { font-size: 10px; color: #333; margin-top: -2px; }

/* ── Footer ──────────────────────────────────────────────────────── */

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #2e2e48;
    flex-shrink: 0;
}

.modal-cancel {
    background: none;
    border: 1px solid #2e2e48;
    color: #888;
    border-radius: 5px;
    padding: 7px 18px;
    font-size: 13px;
    cursor: pointer;
}
.modal-cancel:hover { border-color: #555; color: #e2e2f0; }

.modal-submit {
    background: #5a8dee;
    border: none;
    color: #fff;
    border-radius: 5px;
    padding: 7px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.modal-submit:hover:not(:disabled) { background: #4a7dde; }
.modal-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Toast ───────────────────────────────────────────────────────── */

.ad-classifier-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e34;
    border: 1px solid #3a3a5a;
    color: #e2e2f0;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 13px;
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    white-space: nowrap;
    animation: toast-in 0.15s ease;
}

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

/* ── Brand Management Panel ──────────────────────────────────────── */

#advertiser-manager-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 360px;
    max-height: calc(100vh - 80px);
    background: #16162a;
    border: 1px solid #2e2e48;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#advertiser-manager-panel.hidden { display: none; }

.mgr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #2e2e48;
    flex-shrink: 0;
}
.mgr-header h4 { margin: 0; font-size: 13px; font-weight: 600; color: #e2e2f0; }
.mgr-header-actions { display: flex; gap: 6px; }

.mgr-add-btn {
    background: #5a8dee;
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}
.mgr-add-btn:hover { background: #4a7dde; }

.mgr-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
}
.mgr-close-btn:hover { color: #e2e2f0; background: #2a2a42; }

#advertiser-manager-list { overflow-y: auto; flex: 1; padding: 6px 0; }

.mgr-loading, .mgr-empty, .mgr-error {
    padding: 16px; font-size: 12px; color: #666; text-align: center;
}
.mgr-error { color: #e05050; }

.mgr-advertiser-row { border-bottom: 1px solid #1e1e34; }

.mgr-advertiser-header {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    gap: 6px;
}

.mgr-name {
    flex: 1;
    font-size: 13px;
    color: #e2e2f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mgr-btn {
    background: none;
    border: 1px solid transparent;
    color: #555;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: color 0.1s, border-color 0.1s;
}
.mgr-btn:hover { color: #e2e2f0; border-color: #2e2e48; }
.mgr-delete-btn:hover, .mgr-delete-campaign-btn:hover { color: #e05050; border-color: #e05050; }

.mgr-campaigns {
    padding: 4px 12px 8px 24px;
    display: flex; flex-direction: column; gap: 4px;
}
.mgr-campaigns.hidden { display: none; }

.mgr-campaign-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #888;
}
.mgr-campaign-row span { flex: 1; }

.mgr-add-campaign-btn {
    background: none; border: none; color: #5a8dee;
    font-size: 11px; cursor: pointer; padding: 2px 0; text-align: left;
}
.mgr-add-campaign-btn:hover { text-decoration: underline; }

/* Inline campaign add/edit input (manager panel) */
.campaign-inline-input {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    align-items: center;
}
.campaign-inline-input input {
    flex: 1;
    background: #0e0e1e;
    border: 1px solid #5a8dee;
    border-radius: 4px;
    color: #e2e2f0;
    font-size: 12px;
    padding: 5px 9px;
    outline: none;
    min-width: 0;
}
.campaign-inline-save {
    color: #5a8dee;
    border-color: #5a8dee;
}
.campaign-inline-save:hover { background: rgba(90,141,238,.12); }
.campaign-inline-save,
.campaign-inline-cancel {
    background: none;
    border: 1px solid #2e2e48;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.campaign-inline-cancel:hover { color: #e2e2f0; }

/* ── Marker context menu ─────────────────────────────────────────── */

.marker-ctx-menu {
    position: fixed;
    z-index: 2000;
    background: #16162a;
    border: 1px solid #2e2e48;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.55);
    min-width: 160px;
    padding: 4px 0;
    font-size: 13px;
}

.ctx-item { padding: 7px 14px; cursor: pointer; color: #c0c0d8; user-select: none; }
.ctx-item:hover { background: #2a2a42; color: #e2e2f0; }
.ctx-header {
    color: #555; font-size: 11px; cursor: default;
    border-bottom: 1px solid #2e2e48; padding-bottom: 6px; margin-bottom: 2px;
}
.ctx-header:hover { background: none; color: #555; }
.ctx-danger { color: #e05050; }
.ctx-danger:hover { background: rgba(224,80,80,.1); color: #e05050; }

/* ── Marker segment ──────────────────────────────────────────────── */

.marker-segment { overflow: hidden; }

/* ── Manage Brands button ────────────────────────────────────────── */

#manage-advertisers-btn { font-size: 12px; padding: 5px 10px; }

/* ── Responsive: narrow screens ─────────────────────────────────── */

@media (max-width: 680px) {
    .modal-body { flex-direction: column; }
    .modal-left { width: 100%; border-right: none; border-bottom: 1px solid #2e2e48; }
    .modal-dialog { height: min(96vh, 860px); }
}

/* ── Scan notification (single aggregated) ───────────────────────── */

.scan-notif {
    position: fixed;
    bottom: 56px;
    right: 16px;
    z-index: 300;
    background: #12121f;
    border: 1px solid rgba(90,141,238,.4);
    border-radius: 8px;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
    overflow: hidden;
    font-size: 12px;
    color: #c8d8f8;
}
.scan-notif.hidden { display: none; }

.scan-notif-main {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px 6px;
}
.scan-notif-spinner {
    display: inline-block;
    animation: scan-spin 1.2s linear infinite;
    font-size: 14px;
    flex-shrink: 0;
    color: #5a8dee;
}
@keyframes scan-spin { to { transform: rotate(360deg); } }

.scan-notif-text { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scan-notif-toggle {
    background: none; border: none; color: #555; cursor: pointer;
    font-size: 11px; padding: 0 2px; flex-shrink: 0;
}
.scan-notif-toggle:hover { color: #aaa; }

.scan-notif-bar-wrap {
    height: 2px;
    background: #1e1e30;
}
.scan-notif-bar {
    height: 100%;
    background: linear-gradient(90deg, #3a6bd4, #5a8dee);
    transition: width 0.4s ease;
}

/* expanded detail rows */
.scan-notif-details { border-top: 1px solid #1e1e30; padding: 4px 0; }
.scan-notif-details.hidden { display: none; }

.scan-notif-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto 3px;
    column-gap: 6px;
    align-items: center;
    padding: 5px 10px 4px;
}
.scan-notif-row-brand { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-notif-row-stat  { font-size: 10px; color: #555; white-space: nowrap; }
.scan-notif-dismiss   { background: none; border: none; color: #444; cursor: pointer; font-size: 14px; padding: 0; }
.scan-notif-dismiss:hover { color: #e55; }
.scan-notif-row-bar-wrap { grid-column: 1 / -1; height: 2px; background: #1e1e30; border-radius: 1px; overflow: hidden; margin-top: 3px; }
.scan-notif-row-bar { height: 100%; background: #3a6bd4; transition: width 0.4s ease; }
