/* ── Notifications tab ──────────────────────────────────────────── */
        .notif-channel-row {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 12px; border: 1px solid var(--map-border);
            border-radius: var(--r-sm); margin-bottom: 8px;
            background: rgba(255,255,255,0.02);
        }
        .notif-channel-icon { font-size: 18px; flex-shrink: 0; }
        .notif-channel-info { flex: 1; min-width: 0; }
        .notif-channel-name { font-size: 12px; font-weight: 600; color: var(--grey-100); }
        .notif-channel-meta { font-size: 11px; color: var(--grey-500); margin-top: 2px; }
        .notif-channel-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .notif-status-dot {
            width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
        }
        .notif-status-dot.enabled  { background: var(--intel-confirmed, #3DBB7D); }
        .notif-status-dot.disabled { background: var(--grey-600); }
        .notif-type-chip {
            font-size: 10px; padding: 3px 8px; border-radius: 10px; cursor: pointer;
            border: 1px solid var(--map-border); color: var(--grey-400);
            background: rgba(255,255,255,0.02); user-select: none; transition: all 0.12s;
        }
        .notif-type-chip.selected {
            border-color: var(--coral); color: var(--coral); background: var(--coral-10);
        }
        .up-input {
            width: 100%; font-size: 12px; font-family: var(--font-primary);
            background: rgba(255,255,255,0.04); border: 1px solid var(--map-border);
            border-radius: var(--r-sm); color: var(--grey-100); padding: 7px 10px;
            outline: none; box-sizing: border-box;
        }
        .up-input:focus { border-color: var(--coral); }
        .up-select {
            width: 100%; font-size: 12px; font-family: var(--font-primary);
            background: rgba(30,32,36,0.95); border: 1px solid var(--map-border);
            border-radius: var(--r-sm); color: var(--grey-100); padding: 7px 10px;
            outline: none; cursor: pointer;
        }
        .up-label {
            display: block; font-size: 11px; color: var(--grey-400); margin-bottom: 5px;
        }
        .up-field-group { display: flex; flex-direction: column; }

        /* ── Account tab — usage dashboard ─────────────────────────────── */
        .ac-stat-row {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
            margin-bottom: 20px;
        }
        .ac-stat {
            background: rgba(255,255,255,0.03); border: 1px solid var(--map-border);
            border-radius: var(--r-sm); padding: 12px 14px;
        }
        .ac-stat-value {
            font-size: 22px; font-weight: 700; color: var(--grey-100);
            font-family: var(--font-mono); line-height: 1;
        }
        .ac-stat-label {
            font-size: 10px; color: var(--grey-500); text-transform: uppercase;
            letter-spacing: 0.5px; margin-top: 4px; font-weight: 600;
        }
        .ac-stat-sub {
            font-size: 10px; color: var(--grey-600); margin-top: 2px;
        }
        .ac-coverage-row { margin-bottom: 8px; }
        .ac-coverage-label {
            display: flex; justify-content: space-between; align-items: baseline;
            font-size: 11px; color: var(--grey-400); margin-bottom: 4px;
        }
        .ac-coverage-pct { font-family: var(--font-mono); color: var(--grey-300); }
        .ac-bar-track {
            height: 4px; background: rgba(255,255,255,0.06);
            border-radius: 2px; overflow: hidden;
        }
        .ac-bar-fill {
            height: 100%; border-radius: 2px;
            background: var(--coral); transition: width 0.4s ease;
        }
        .ac-bar-fill.good { background: var(--success); }
        .ac-bar-fill.mid  { background: #F5A623; }
        .ac-activity-item {
            display: flex; gap: 10px; align-items: flex-start;
            padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
            font-size: 11px;
        }
        .ac-activity-item:last-child { border-bottom: none; }
        .ac-activity-dot {
            width: 6px; height: 6px; border-radius: 50%; margin-top: 4px;
            flex-shrink: 0; background: var(--grey-600);
        }
        .ac-activity-dot.create { background: var(--success); }
        .ac-activity-dot.update { background: var(--blue-muted); }
        .ac-activity-dot.delete { background: var(--coral); }
        .ac-activity-body { flex: 1; min-width: 0; }
        .ac-activity-line {
            color: var(--grey-300); white-space: nowrap; overflow: hidden;
            text-overflow: ellipsis;
        }
        .ac-activity-meta { color: var(--grey-600); margin-top: 1px; }
        .ac-loading {
            font-size: 11px; color: var(--grey-600);
            padding: 20px 0; text-align: center;
        }
        .ac-api-row {
            display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
            margin-bottom: 20px;
        }
        .ac-api-cell {
            background: rgba(255,255,255,0.02); border: 1px solid var(--map-border);
            border-radius: var(--r-sm); padding: 10px 12px;
        }
        .ac-api-cell-label {
            font-size: 9px; color: var(--grey-600); text-transform: uppercase;
            letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 700;
        }
        .ac-api-cell-val {
            font-size: 15px; font-weight: 700; font-family: var(--font-mono);
            color: var(--grey-200);
        }
        .ac-api-cell-sub { font-size: 10px; color: var(--grey-600); margin-top: 2px; }

        /* Audit detail improvements */
        .dc-audit-diff { font-size: 12px; margin-top: 4px; }
        .dc-audit-diff-item {
            padding: 2px 0; display: flex; gap: 4px; align-items: baseline;
            font-family: var(--font-mono); font-size: 10px;
        }
        .dc-audit-diff-key { color: var(--grey-400); min-width: 80px; }
        .dc-audit-diff-old { color: var(--coral); text-decoration: line-through; opacity: 0.7; }
        .dc-audit-diff-new { color: var(--success); }
        .dc-audit-diff-arrow { color: var(--grey-600); font-size: 10px; }

        .feature-list-header {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: var(--map-label);
            margin-bottom: var(--sp-2);
        }

        .feature-item {
            padding: 8px 10px 8px 12px;
            border: none;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            border-left: 2px solid transparent;
            border-radius: 0;
            margin-bottom: 0;
            cursor: pointer;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            transition: background 0.1s ease, border-left-color 0.1s ease;
        }

        .feature-item:hover {
            background: var(--panel-bg-raised);
        }

        .feature-item.selected {
            background: rgba(255,134,122,0.05);
            border-left-color: var(--coral);
        }
        .feature-item.selected.just-selected {
            animation: selectPulse 0.4s ease-out;
        }
        @keyframes selectPulse {
            0% { background: rgba(255,134,122,0.12); }
            100% { background: rgba(255,134,122,0.05); }
        }

        .feature-item .name {
            font-size: 11px;
            font-weight: 600;
            color: var(--grey-100);
            display: flex;
            align-items: center;
            flex-direction: row;
            gap: 6px;
            flex: 1;
            min-width: 0;
        }
        .feature-item .name .type-badge {
            flex-shrink: 0;
            margin-right: 0;
        }
        .feature-item .name-text {
            flex: 1;
            min-width: 0;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .feature-item .meta {
            font-size: 10px;
            font-family: var(--font-mono);
            color: var(--grey-600);
            margin-top: 2px;
        }

        /* Star: invisible at rest, appears on row hover or when active */
        .feature-item .fav-btn {
            opacity: 0;
            background: none;
            border: none;
            color: var(--grey-600);
            cursor: pointer;
            padding: 2px;
            flex-shrink: 0;
            font-size: 10px;
            transition: opacity 0.1s, color 0.1s;
            line-height: 1;
        }
        .feature-item:hover .fav-btn { opacity: 1; }
        .feature-item .fav-btn.active {
            opacity: 1;
            color: var(--warning);
        }
        .feature-item .fav-btn svg { width: 10px; height: 10px; }

        /* Favourites section divider */
        .feature-list-fav-label {
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: var(--grey-600);
            padding: 8px 12px 4px;
            user-select: none;
        }
        .feature-list-section-divider {
            height: 1px;
            background: var(--map-border);
            margin: 4px 0;
        }
        /* Fav button: hidden until hover or already favourited */
        .feature-item .fi-fav-btn {
            position: absolute; top: 8px; right: 8px;
            background: none; border: none; cursor: pointer;
            padding: 2px; opacity: 0; transition: opacity 0.15s;
            color: var(--grey-600);
        }
        .feature-item:hover .fi-fav-btn { opacity: 1; }
        .feature-item .fi-fav-btn.is-fav {
            opacity: 1;
            color: var(--warning);
        }
        .feature-item .fi-fav-btn svg { width: 13px; height: 13px; }



        .type-badge {
            display: inline-block;
            font-size: 7px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 2px 5px;
            border-radius: 2px;
            margin-right: 0;
            vertical-align: middle;
            flex-shrink: 0;
        }

        /* Supply chain semantic colours */
        .type-badge.site       { background: rgba(255,134,122,0.15); color: var(--coral); }
        .type-badge.zone       { background: var(--blue-15);         color: var(--blue-muted); }
        .type-badge.route      { background: rgba(59,93,113,0.25);   color: var(--grey-300); }
        .type-badge.sensor     { background: rgba(245,166,35,0.15);  color: var(--warning); }
        .type-badge.hub        { background: rgba(255,255,255,0.10); color: var(--white); }
        .type-badge.alert      { background: rgba(229,73,58,0.15);   color: var(--error); }
        .type-badge.default    { background: rgba(255,255,255,0.06); color: var(--grey-400); }

        /* Asset type badges (matching map colors) */
        .type-badge.terminal   { background: rgba(61,187,125,0.15);  color: var(--success); }
        .type-badge.airport    { background: rgba(74,155,240,0.15);  color: var(--info); }
        .type-badge.refinery   { background: rgba(255,134,122,0.15); color: var(--coral); }
        .type-badge.station    { background: rgba(245,166,35,0.15);  color: var(--warning); }
        .type-badge.rail       { background: rgba(176,190,197,0.15); color: #B0BEC5; }
        .type-badge.pipeline   { background: rgba(128,191,255,0.15); color: var(--blue-muted); }
        .type-badge.jetty      { background: rgba(78,205,196,0.15);  color: var(--teal); }
