/* ── C2 EDS View Layout ── */

#tab-c2eds {
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #1b1b1b;
}

#tab-c2eds.active {
    display: flex;
}

/* ── System Bar ── */
.c2eds-sysbar {
    flex-shrink: 0;
    background: #242424;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    min-height: 48px;
    z-index: 100;
}
.c2eds-sysbar .items-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.c2eds-sysbar .items-container.left { flex: 0 0 auto; }
.c2eds-sysbar .items-container.right { flex: 0 0 auto; }
.c2eds-sysbar .item { display: flex; align-items: center; gap: 6px; }
.c2eds-sysbar .product {
    font-family: 'Ericsson Hilda', sans-serif;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    display: inline !important; /* fighting EDS .product (or generic selector) display: block */
}
#c2eds-brand { cursor: pointer; }
/* No hoover effect */
/*#c2eds-brand:hover .product { color: #4ec3f5; }*/
#c2eds-site-selector {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
#c2eds-site-selector:hover { border-color: #888; color: #fff; }
.c2eds-sysbar .btn {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
}
.c2eds-sysbar .btn:hover { border-color: #888; color: #fff; }
.c2eds-sysbar .btn.primary {
    background: #0077db;
    border-color: #0077db;
    color: #fff;
}
.c2eds-sysbar .btn.primary:hover { background: #3d85ff; }
#c2eds-username { font-size: 13px; }

/* ── Main Body (3-column layout) ── */
.c2eds-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Application Layer ── */
.appbar .actions-left .item:first-child {
    padding-left: 6px !important;
    padding-right: 16px !important;
}

.appbar .actions-right .items-container {
    display: flex;
    align-items: center;
    gap: 8px;
}


.dark .appbar .title.open-menu .title-name{
    padding-left: 12px !important;
}

.dark .appbar .title.open-menu{
    left: 34px !important;
}

.dark .appbar.nav-expanded .title.open-menu {
    left: 204px !important;
}

.dark .appbar .menu-anchor.open-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.dark .appbar.nav-expanded .menu-anchor.open-menu {
    opacity: 1;
    pointer-events: auto;
}


/* ── Left Navigation ── */
.c2eds-nav {
    width: 48px;
    flex-shrink: 0;
    background: #1b1b1b;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
    overflow: hidden;
    z-index: 50;
}
.c2eds-nav.expanded { width: 220px; }

.c2eds-nav-toggle {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.c2eds-nav-toggle:hover { background: #333; color: #fff; }

.c2eds-nav-items {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    overflow: hidden;
}
.c2eds-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    text-align: left;
    min-height: 40px;
}
.c2eds-nav-item i { font-size: 18px; flex-shrink: 0; width: 20px; text-align: center; }
.c2eds-nav-item span { opacity: 0; transition: opacity 0.15s ease; }
.c2eds-nav.expanded .c2eds-nav-item span { opacity: 9; }
.c2eds-nav-item:hover { background: #0077db; color: #fff; }
.c2eds-nav-item.active { color: #fff; border-left: 3px solid #0077db; padding-left: 11px; }
/*4ec3f5*/
.c2eds-nav-sep { height: 1px; background: #333; margin: 8px 12px; }

/* Tooltip shown to the right of icons while nav is collapsed */
.c2eds-nav-tooltip {
    position: fixed;
    background: #fff;
    color: #000;
    font-family: "Ericsson Hilda", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    transform: translateY(-50%);
}
.c2eds-nav-tooltip::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent #fff transparent transparent;
}

/* ── Left Panel ── */
.c2eds-left-panel {
    flex: 0 0 320px;
    min-width: 0;
    background: #242424;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Left-panel inner sections: each is a flex column that takes its flex-basis height */
#c2eds-det-section,
#c2eds-tracked-section,
#c2eds-actions-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-shrink: 0;
}
#c2eds-det-section { flex: 0 0 33%; }
#c2eds-tracked-section { flex: 1 1 33%; }
#c2eds-actions-section { flex: 0 0 33%; }

/* Content areas inside left-panel sections grow to fill the section */
#c2eds-det-section > .c2eds-accordion-content,
#c2eds-tracked-section > .c2eds-accordion-content,
#c2eds-actions-section > .c2eds-accordion-content {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}
/* Re-apply collapsed hiding with sufficient specificity */
#c2eds-det-section > .c2eds-accordion-content.collapsed,
#c2eds-tracked-section > .c2eds-accordion-content.collapsed,
#c2eds-actions-section > .c2eds-accordion-content.collapsed {
    max-height: 0;
    overflow: hidden;
    flex: 0 0 0;
}

/* Inner horizontal dividers for left panel */
#c2eds-det-divider,
#c2eds-track-divider {
    z-index: 10;
    flex-shrink: 0;
}

.c2eds-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}
.c2eds-panel-header h3 {
    font-family: 'Ericsson Hilda', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* ── Accordion Sections ── */
.c2eds-accordion-section {
    border-bottom: 1px solid #333;
}
.c2eds-accordion-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
}
.c2eds-accordion-toggle:hover { background: #2a2a2a; }
.c2eds-accordion-toggle i.icon {
    transition: transform 0.2s ease;
    font-size: 14px;
}
.c2eds-accordion-toggle:not(.open) i.icon { transform: rotate(-90deg); }
.c2eds-accordion-toggle .badge {
    background: #0077db;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    margin-left: auto;
}
.c2eds-accordion-content {
    overflow-y: auto;
    max-height: 400px;
    transition: max-height 0.2s ease;
}
.c2eds-accordion-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

/* ── Detection List ── */
.c2eds-detection-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.c2eds-detection-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    font-size: 12px;
    color: #ccc;
}
.c2eds-detection-row:hover { background: #2e2e2e; }
.c2eds-detection-row.selected { background: #1a3a5c; }
.c2eds-detection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.c2eds-detection-dot.level-green { background: #4caf50; }
.c2eds-detection-dot.level-blue { background: #2196f3; }
.c2eds-detection-dot.level-yellow { background: #ffc107; }
.c2eds-detection-dot.level-orange { background: #ff9800; }
.c2eds-detection-dot.level-red { background: #f44336; }
.c2eds-detection-reason { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2eds-detection-time { color: #888; font-size: 11px; flex-shrink: 0; }
.c2eds-detection-actions { display: flex; gap: 4px; flex-shrink: 0; }
.c2eds-detection-actions .btn {
    padding: 2px 8px;
    font-size: 11px;
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 3px;
    cursor: pointer;
}
.c2eds-detection-actions .btn:hover { border-color: #888; color: #fff; }
.c2eds-detection-actions .btn.primary { background: #0077db; border-color: #0077db; color: #fff; }

/* ── Tracked Objects Table ── */
.c2eds-tracked-filter-bar {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
}
.c2eds-filter-btn {
    padding: 4px 12px;
    font-size: 11px;
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 3px;
    cursor: pointer;
}
.c2eds-filter-btn:hover { border-color: #888; color: #fff; }
.c2eds-filter-btn.active { background: #0077db; border-color: #0077db; color: #fff; }

.c2eds-tracked-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.c2eds-tracked-table thead th {
    padding: 6px 8px;
    text-align: left;
    color: #888;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: #242424;
}
.c2eds-tracked-table tbody tr {
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
}
.c2eds-tracked-table tbody tr:hover { background: #2e2e2e; }
.c2eds-tracked-table tbody tr.selected { background: #1a3a5c; }
.c2eds-tracked-table tbody td {
    padding: 6px 8px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
/* Intent-based row colors */
.c2eds-tracked-table tbody tr[data-intent="hostile"] { background: #5c1e1e; }
.c2eds-tracked-table tbody tr[data-intent="hostile"]:hover { background: #6e2626; }
.c2eds-tracked-table tbody tr[data-intent="suspicious"] { background: #4a3a1a; }
.c2eds-tracked-table tbody tr[data-intent="suspicious"]:hover { background: #5c4a24; }
.c2eds-tracked-table tbody tr[data-intent="friendly"] { background: #1a4a2a; }
.c2eds-tracked-table tbody tr[data-intent="friendly"]:hover { background: #245c36; }

.c2eds-tracked-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Actions List ── */
.c2eds-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.c2eds-action-row {
    display: flex;
    gap: 8px;
    padding: 6px 16px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 12px;
    color: #ccc;
}
.c2eds-action-time { color: #888; font-size: 11px; flex-shrink: 0; }
.c2eds-action-msg { flex: 1; }
.c2eds-action-meta { color: #666; font-size: 11px; flex-shrink: 0; }

/* ── Map Area ── */
.c2eds-map-area {
    flex: 1 1 0;
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.c2eds-map-header {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    pointer-events: none;
}
.c2eds-map-label {
    background: rgba(36, 36, 36, 0.85);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.c2eds-map-container {
    flex: 1;
    min-height: 0;
    position: relative;
}
.c2eds-map-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 1100;
}
.c2eds-map-controls .btn {
    width: 36px !important; /* fighting EDS .btn width: auto */
    min-width: 36px !important; /* fighting EDS .btn min-width */
    height: 36px !important; /* fighting EDS .btn fixed height */
    padding: 0 !important; /* fighting EDS .btn padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 !important; /* fighting EDS .btn background color */
    border: 1px solid #555;
    border-radius: 0;
    color: #ccc;
    cursor: pointer;
}
.c2eds-map-controls .btn:hover { background: #444; color: #fff; }

/* ── Right Panel (Selected object + Action log) ── */
.c2eds-right-panel {
    flex: 0 0 360px;
    min-width: 0;
    background: #242424;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.c2eds-objinfo-id {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.c2eds-objinfo-type {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.c2eds-objinfo-section {
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.c2eds-objinfo-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.c2eds-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.c2eds-stat .label { color: #888; font-size: 12px; }
.c2eds-stat .value { color: #fff; font-size: 12px; font-family: monospace; }

/* Confidence bar */
.c2eds-confidence {
    display: flex;
    align-items: center;
    gap: 10px;
}
.c2eds-confidence .label { color: #888; font-size: 12px; flex-shrink: 0; }
.c2eds-confidence .value { color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.c2eds-confidence-bar {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}
.c2eds-confidence-fill {
    height: 100%;
    background: #4caf50;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Classification selects */
.c2eds-select {
    background: #1b1b1b;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}
.c2eds-select:hover { border-color: #888; }

/* Notes timeline */
.c2eds-notes-section { border-bottom: none; }
.c2eds-notes-timeline {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}
.c2eds-note-entry {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 12px;
    color: #ccc;
}
.c2eds-note-entry .time {
    color: #888;
    font-size: 11px;
    margin-bottom: 2px;
}
.c2eds-note-entry .text { color: #ccc; }
.c2eds-note-entry .badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-right: 4px;
    font-weight: 600;
}
.c2eds-note-input {
    width: 100%;
    background: #1b1b1b;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.c2eds-note-input:focus { border-color: #0077db; outline: none; }

/* Action buttons */
.c2eds-objinfo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0 0;
}
.c2eds-objinfo-actions .btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.c2eds-objinfo-actions .btn:hover { background: #444; color: #fff; }
.c2eds-objinfo-actions .btn.primary {
    background: #0077db;
    border-color: #0077db;
    color: #fff;
}
.c2eds-objinfo-actions .btn.primary:hover { background: #3d85ff; }

/* ── Scenario menu (reused for site selector) ── */
.c2eds-scenario-menu {
    position: absolute;
    top: 48px;
    transform: translateX(-50%);
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 0;
    z-index: 200;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: none;
}
.c2eds-scenario-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 13px;
}
.c2eds-scenario-menu button:hover { background: #333; color: #fff; }

/* ── Utility ── */
.c2eds-hidden { display: none !important; } /* utility class; must win over any display rule */

/* ── System Connections Overlay ── */
.c2eds-syscon-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}
.c2eds-syscon-dialog {
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 8px;
    width: 95%;
    max-width: 1200px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.c2eds-syscon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}
.c2eds-syscon-header h2 {
    font-family: 'Ericsson Hilda', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}
.c2eds-syscon-subtitle {
    color: #888;
    font-size: 13px;
}
.c2eds-syscon-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
}
.c2eds-syscon-close:hover { color: #fff; }

.c2eds-syscon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.c2eds-syscon-card {
    background: #242424;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}
.c2eds-syscon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}
.c2eds-syscon-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}
.c2eds-syscon-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}
.c2eds-syscon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f44336;
}
.c2eds-syscon-dot.connected { background: #4caf50; }

.c2eds-syscon-card-body {
    padding: 12px 16px;
    flex: 1;
}
.c2eds-syscon-field {
    margin-bottom: 10px;
}
.c2eds-syscon-field > label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.c2eds-syscon-checks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.c2eds-syscon-checks label {
    font-size: 12px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.c2eds-syscon-checks input[type="checkbox"] {
    accent-color: #0077db;
}
.c2eds-syscon-field select {
    background: #1b1b1b;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    width: 100%;
}
.c2eds-syscon-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.c2eds-syscon-switch input { opacity: 0; width: 0; height: 0; }
.c2eds-syscon-switch .slider {
    position: absolute;
    inset: 0;
    background: #555;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.c2eds-syscon-switch .slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.c2eds-syscon-switch input:checked + .slider { background: #0077db; }
.c2eds-syscon-switch input:checked + .slider::before { transform: translateX(16px); }

.c2eds-syscon-value {
    font-size: 12px;
    color: #ccc;
}
.c2eds-syscon-incidents {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 80px;
    overflow-y: auto;
}
.c2eds-syscon-incidents li {
    font-size: 11px;
    color: #ccc;
    padding: 2px 0;
    border-bottom: 1px solid #2a2a2a;
}
.c2eds-syscon-incidents li.empty { color: #666; font-style: italic; }

.c2eds-syscon-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #333;
}
.c2eds-syscon-card-footer .btn {
    padding: 4px 16px;
    font-size: 12px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.c2eds-syscon-card-footer .btn:hover { background: #444; }
.c2eds-syscon-card-footer .btn.primary {
    background: #0077db;
    border-color: #0077db;
    color: #fff;
}
.c2eds-syscon-card-footer .btn.primary:hover { background: #3d85ff; }

/* ── Right Panel: Dual-section layout with draggable divider ── */
.c2eds-rp-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
#c2eds-rp-selected {
    flex: 1 1 50%;
}
#c2eds-rp-selected > .c2eds-accordion-content {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}
#c2eds-rp-selected > .c2eds-accordion-content.collapsed {
    max-height: 0;
    overflow: hidden;
    flex: 0 0 0;
}
#c2eds-rp-divider {
    z-index: 10;
    flex-shrink: 0;
}
.c2eds-rp-log-section {
    flex: 1 1 50%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    border-top: none;
}
.c2eds-rp-log-section > .c2eds-accordion-content {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}
.c2eds-rp-sel-body {
    padding: 16px;
}
.c2eds-rp-sel-id {
    margin-left: auto;
    font-family: monospace;
    font-size: 11px;
    color: #4ec3f5;
}
.c2eds-rp-sel-empty {
    padding: 32px 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
}
.c2eds-rp-sel-empty p { margin: 4px 0; }
.c2eds-rp-hint { font-size: 11px; color: #555; }
.c2eds-compass-section {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}
#c2eds-heading-canvas { display: block; }

/* ── Action Log entries ── */
.c2eds-rp-log-filter {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    border-bottom: 1px solid #2a2a2a;
}
.c2eds-rp-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.c2eds-rp-log-entry {
    padding: 8px 16px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
}
.c2eds-rp-log-entry:hover { background: #2e2e2e; }
.c2eds-rp-log-entry-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.c2eds-rp-log-time {
    font-size: 11px;
    color: #888;
    font-family: monospace;
    flex-shrink: 0;
}
.c2eds-rp-log-type-tag {
    font-size: 10px;
    font-family: monospace;
    border: 1px solid #4af;
    color: #4af;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}
.c2eds-rp-log-type-tag.detection {
    border-color: var(--detection-color, #4af);
    color: var(--detection-color, #4af);
}
.c2eds-rp-log-msg {
    font-size: 12px;
    color: #ccc;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.c2eds-rp-log-meta {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    width: 100%;
}
.c2eds-rp-log-user { color: #888; }
.c2eds-rp-log-id {
    font-family: monospace;
    color: #4ec3f5;
    cursor: pointer;
}
.c2eds-rp-log-id:hover { text-decoration: underline; }

/* c2eds left divider: when collapsed, pill drifts into map area (right),
   not into the collapsed (0-width) panel (left). */
#c2eds-left-divider.c2-divider--collapsed .c2-panel-notch--vert {
    transform: translate(5px, -50%);
}

/* ── Timeline inside c2eds map area ── */
#c2eds-map-area #drag-divider {
    background: #000;
}
#c2eds-map-area #drag-divider:hover,
#c2eds-map-area #drag-divider:active {
    background: #0077db;
}
#c2eds-map-area #timeline {
    flex: 0 0 25%;
    min-height: 40px;
}
