:root {
    --bg-main: #0A0E17;
    --bg-side: rgba(14, 18, 26, 0.65);
    --bg-card: rgba(19, 24, 34, 0.55);
    --bg-hover: rgba(38, 45, 58, 0.6);
    --accent: #FFCC00;
    --accent-hover: #FFD633;
    --accent-gradient: linear-gradient(135deg, #FFCC00 0%, #CC9900 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --highlight: #f59e0b;
    --danger: #ff4757;
    --success: #2ed573;
    --scrollbar-track: rgba(6, 10, 18, 0.82);
    --scrollbar-thumb: rgba(255, 204, 0, 0.42);
    --scrollbar-thumb-hover: rgba(255, 204, 0, 0.72);
    --font-mono: 'IBM Plex Mono', monospace;
    --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

button, input, select, textarea {
    font-family: inherit;
}

/* ==========================================================================
   UNIFIED BUTTON DESIGN SYSTEM (PREMIUM, CONSISTENT, NON-BOLD)
   ========================================================================== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.btn,
.btn-primary,
.btn-secondary,
.btn-search,
.btn-ai-action,
.btn-action,
.btn-reset,
.galaxy-subtab,
.filter-chip,
.source-action-btn,
.ioc-tab,
.api-filter-pill,
.free-sources-toggle-btn,
.bw-subtab-btn,
.tg-subtab-btn,
.poc-sort-switch button,
.xmon-tabs button,
.xmon-actions button,
.todays-filterbar button {
    font-family: var(--font-ui) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    letter-spacing: 0.15px !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.95), rgba(11, 17, 28, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.035);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.56), rgba(204, 153, 0, 0.36));
    border: 2px solid rgba(6, 10, 18, 0.95);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 214, 51, 0.82), rgba(204, 153, 0, 0.58));
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
}
html { scroll-behavior: smooth; }

select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(8, 12, 20, 0.92);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%),
        linear-gradient(135deg, var(--accent) 50%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%,
        0 0;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    color: var(--text-main);
    color-scheme: dark;
    font-family: var(--font-ui);
    font-weight: 700;
    min-height: 36px;
    outline: none;
    padding-right: 34px !important;
}

select:hover {
    background-color: rgba(12, 18, 30, 0.98);
    border-color: rgba(255,204,0,0.32);
}

select:focus {
    border-color: rgba(255,204,0,0.62);
    box-shadow: 0 0 0 2px rgba(255,204,0,0.18);
}

select option,
select optgroup {
    background-color: #0b111d;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-weight: 650;
}

select option:checked {
    background-color: var(--accent);
    color: #080b12;
}

select option:hover {
    background-color: rgba(255,204,0,0.18);
    color: var(--text-main);
}

.ambient-glow {
    display: none;
}

.app-container { display: flex; width: 100%; min-height: 100vh; align-items: flex-start; position: relative; z-index: 1; }

.sidebar {
    width: 300px;
    min-width: 300px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    background: var(--bg-side);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    scrollbar-gutter: stable;
}
.sidebar.collapsed {
    margin-left: -300px;
    opacity: 0;
    pointer-events: none;
}

.sidebar-header { padding: 18px 16px; border-bottom: 1px solid var(--border); }
.logo-hero { display: flex; flex-direction: column; gap: 3px; }
.main-title { display: flex; align-items: center; gap: 8px; font-family: 'Michroma', var(--font-mono); font-size: 1.02rem; margin: 0;}
.typing-subtitle {
    font-family: var(--font-mono); font-size: 0.62rem; color: var(--accent);
}

.nav-menu { padding: 14px 8px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
/* Sidebar section headers (IOC Intelligence / Search / Threat Knowledge). */
.nav-section-label {
    padding: 10px 12px 2px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.75;
}
.nav-section-label:first-child { padding-top: 0; }
.nav-item, .nav-item-modal { padding: 8px 12px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 9px; color: var(--text-muted); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-weight: 600; font-size: 0.82rem; }
.nav-item i:first-child, .nav-item-modal i:first-child { width: 15px; font-size: 0.82rem; text-align: center; }
.nav-item:hover, .nav-item-modal:hover { background: var(--bg-hover); color: white; transform: translateX(4px); }
.nav-item.active { background: rgba(255, 204, 0, 0.1); color: var(--accent); border-left: 3px solid var(--accent); box-shadow: inset 2px 0 8px rgba(255, 204, 0,0.05); }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-parent.expanded-parent {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
}
/* Active parent (current page belongs to this group) vs merely expanded. */
.nav-parent.active {
    background: rgba(255, 204, 0, 0.15);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}
.nav-subitem {
    padding: 7px 11px;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-muted);
}
.nav-parent .nav-caret { margin-left: auto; font-size: 0.62rem; transition: transform 0.2s ease; }
.nav-group.expanded .nav-caret { transform: rotate(90deg); }
.nav-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin-left: 14px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-group.expanded .nav-submenu { display: flex; }
.nav-subitem {
    padding: 7px 11px;
    font-size: 0.76rem;
    border-radius: 6px;
}
.nav-subitem.active { border-left-width: 3px; }

.mantis-ai-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(1, 4, 12, 0.76);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.ai-panel-open .mantis-ai-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.mantis-ai-panel {
    position: fixed;
    inset: 16px;
    width: auto;
    height: auto;
    z-index: 1200;
    min-width: 0;
    min-height: 0;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}

.ai-panel-open .mantis-ai-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-panel-minimized .mantis-ai-backdrop,
.ai-panel-minimized .mantis-ai-panel {
    opacity: 0;
    pointer-events: none;
}

.mantis-ai-minimized {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1210;
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(255, 204, 0, 0.94);
    color: #111827;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    font-weight: 900;
    padding: 11px 15px;
}

.ai-panel-minimized .mantis-ai-minimized { display: flex; }

.ai-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
}

.ai-panel-header h3,
.ai-settings-head h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-panel-header h3 i,
.ai-settings-head h3 i { color: var(--accent); }

#ai-status,
#ai-settings-status {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.ai-panel-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ai-close,
#ai-minimize {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

#ai-close:hover,
#ai-minimize:hover {
    color: var(--text-main);
    border-color: rgba(255, 204, 0, 0.26);
    background: rgba(255, 204, 0, 0.06);
}

.ai-panel-body {
    flex: 1;
    min-height: 0;
    display: grid !important;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    overflow: hidden;
}

.ai-workbench-rail {
    grid-column: 1;
    width: auto;
    max-width: none;
    min-height: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    background: #0d1320;
}

.ai-workbench-main {
    grid-column: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #080c14;
}

.ai-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ai-quick-actions .btn-secondary {
    justify-content: center;
    font-size: 0.78rem;
    padding: 9px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
}

.ai-mode-row {
    padding: 12px 0 0;
    display: flex;
    gap: 8px;
}

.ai-mode-row .galaxy-subtab {
    flex: 1;
    justify-content: center;
}

.ai-case-panel {
    margin-top: 12px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(7, 15, 28, 0.76);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    gap: 9px;
}

.ai-case-empty {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.ai-case-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
}

.ai-case-kicker,
.ai-case-label {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.ai-case-title {
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 850;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.ai-case-head b {
    border: 1px solid rgba(255, 204, 0, 0.24);
    border-radius: 999px;
    color: var(--accent);
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 900;
    max-width: 135px;
    overflow: hidden;
    padding: 4px 7px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-case-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 6px;
}

.ai-case-metrics span {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.66rem;
    padding: 7px;
}

.ai-case-metrics b {
    color: var(--text-main);
    display: block;
    font: 900 0.9rem var(--font-mono);
}

.ai-case-next {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #a8c2df;
    font-size: 0.72rem;
    line-height: 1.38;
    padding-top: 8px;
}

.ai-case-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.ai-case-source-row span {
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 999px;
    color: #bde0ff;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 3px 7px;
}

.ai-case-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.ai-case-buttons .btn-secondary {
    font-size: 0.68rem;
    justify-content: center;
    padding: 6px 6px;
}

.ai-case-timeline {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 7px;
}

.ai-case-timeline summary {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-case-event {
    display: grid;
    gap: 2px;
    margin-top: 7px;
}

.ai-case-event b {
    color: var(--accent);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.ai-case-event span {
    color: var(--text-main);
    font-size: 0.73rem;
}

.ai-case-event small {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
}

.ai-agent-controls {
    margin: 12px 0 0;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    padding: 10px;
}

.ai-agent-limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ai-agent-limits label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ai-agent-limits input {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 6px;
    padding: 7px 8px;
    outline: none;
    font: 0.82rem var(--font-ui);
}

.ai-agent-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ai-agent-buttons .btn-primary,
.ai-agent-buttons .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.75rem;
}

.ai-agent-status {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin: 10px 0 8px;
}

.ai-agent-trace {
    max-height: 190px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ai-agent-empty {
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 8px 2px;
}

.ai-tool-hint {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    padding-top: 10px;
}

.ai-agent-step {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 7px;
    padding: 8px 9px;
}

.ai-agent-step-running { border-color: rgba(255, 204, 0, 0.25); }
.ai-agent-step-complete { border-color: rgba(46, 213, 115, 0.22); }
.ai-agent-step-failed { border-color: rgba(255, 71, 87, 0.28); }

.ai-agent-step-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
}

.ai-agent-step-head b {
    color: var(--accent);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.ai-agent-step-artifact {
    margin-top: 5px;
    color: var(--accent);
    font: 0.72rem var(--font-mono);
    overflow-wrap: anywhere;
}

.ai-agent-step-reason,
.ai-agent-step-error {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.ai-agent-step-error { color: var(--danger); }

.ai-correlation-controls {
    margin: 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(12, 18, 30, 0.72);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.ai-toolbox summary {
    align-items: center;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 850;
    list-style: none;
    padding: 10px 11px;
}

.ai-toolbox summary::-webkit-details-marker {
    display: none;
}

.ai-toolbox summary::after {
    color: var(--text-muted);
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 0.68rem;
    font-weight: 900;
    margin-left: auto;
}

.ai-toolbox[open] summary::after {
    transform: rotate(180deg);
}

.ai-toolbox-body {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

.ai-correlation-head {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ai-correlation-controls textarea {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    background: rgba(5, 9, 16, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-main);
    border-radius: 7px;
    padding: 10px 11px;
    outline: none;
    font: 0.82rem var(--font-ui);
    line-height: 1.45;
}

.ai-correlation-controls textarea:focus { border-color: var(--accent); }

#ai-correlation-run,
#ai-attribution-run {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
}

.ai-correlation-card {
    margin-top: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(5, 9, 16, 0.52);
    border-radius: 8px;
    padding: 12px;
}

.ai-tool-result-card {
    display: grid;
    gap: 10px;
}

.ai-tool-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ai-tool-result-kicker {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.ai-tool-result-score {
    align-items: baseline;
    background: rgba(255, 204, 0, 0.09);
    border: 1px solid rgba(255, 204, 0, 0.24);
    border-radius: 7px;
    color: var(--accent);
    display: inline-flex;
    font: 900 1rem var(--font-mono);
    gap: 2px;
    padding: 6px 8px;
}

.ai-tool-result-score span {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.ai-correlation-title {
    color: var(--accent);
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ai-correlation-reason {
    color: #a8c2df;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-top: 0;
}

.ai-correlation-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.ai-correlation-counts span {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    min-width: 0;
    padding: 8px 9px;
}

.ai-correlation-counts b {
    color: var(--text-main);
    font: 900 0.92rem var(--font-mono);
}

.ai-correlation-counts small {
    color: #a8c2df;
    font-size: 0.68rem;
    font-weight: 800;
}

.ai-correlation-counts .is-strong { border-color: rgba(46, 213, 115, 0.32); }
.ai-correlation-counts .is-supporting { border-color: rgba(125, 211, 252, 0.28); }
.ai-correlation-counts .is-weak { border-color: rgba(245, 158, 11, 0.3); }
.ai-correlation-counts .is-contradicting { border-color: rgba(255, 71, 87, 0.32); }

.ai-relationship-pill {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #cbd5e1;
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    max-width: 120px;
    overflow: hidden;
    padding: 4px 8px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-relationship-insufficient-evidence,
.ai-relationship-unknown {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}

.ai-cluster-pill {
    margin-top: 8px;
    border: 1px solid rgba(255, 204, 0, 0.2);
    background: rgba(255, 204, 0, 0.06);
    color: var(--accent);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 700;
}

.ai-evidence-details {
    margin-top: 10px;
    color: var(--text-main);
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 9px;
}

.ai-evidence-details summary {
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    font-size: 0.76rem;
    font-weight: 850;
    justify-content: space-between;
    list-style: none;
}

.ai-evidence-details summary::-webkit-details-marker {
    display: none;
}

.ai-evidence-details summary::after {
    color: var(--text-muted);
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 0.64rem;
    font-weight: 900;
    transition: transform 0.16s ease;
}

.ai-evidence-details[open] summary::after {
    transform: rotate(180deg);
}

.ai-evidence-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.ai-toolbox .ai-evidence-list,
.ai-attribution-list {
    max-height: none;
    overflow: visible;
}

.ai-attribution-list {
    display: grid;
    gap: 9px;
    margin-top: 0;
}

.ai-evidence-item {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 7px;
    padding: 8px 9px;
    min-width: 0;
}

.ai-evidence-strong { border-color: rgba(46, 213, 115, 0.3); }
.ai-evidence-supporting { border-color: rgba(255, 204, 0, 0.22); }
.ai-evidence-weak { border-color: rgba(245, 158, 11, 0.22); }
.ai-evidence-contradicting { border-color: rgba(255, 71, 87, 0.32); }

.ai-evidence-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 800;
}

.ai-evidence-head b {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.ai-evidence-value {
    margin-top: 5px;
    color: var(--accent);
    font: 0.72rem var(--font-mono);
    overflow-wrap: anywhere;
}

.ai-evidence-meta {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.35;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.ai-evidence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.ai-evidence-actions .btn-secondary {
    padding: 4px 7px;
    font-size: 0.66rem;
}

.ai-attribution-candidate {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 13, 22, 0.72);
    border-radius: 8px;
    padding: 11px;
    min-width: 0;
}

.ai-attribution-candidate.is-top {
    border-color: rgba(255, 204, 0, 0.26);
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.065), rgba(8, 13, 22, 0.72));
}

.ai-attribution-rank {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
    min-width: 0;
}

.ai-attribution-rank span {
    align-items: center;
    display: flex;
    gap: 7px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ai-attribution-rank em {
    align-items: center;
    background: rgba(255, 204, 0, 0.13);
    border: 1px solid rgba(255, 204, 0, 0.28);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    flex: 0 0 22px;
    font-style: normal;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.ai-attribution-rank b {
    color: var(--accent);
    font-family: var(--font-mono);
    flex: 0 0 auto;
}

.ai-attribution-rank small {
    color: var(--text-muted);
    font-size: 0.62rem;
}

.ai-attribution-summary {
    color: #a8c2df;
    font-size: 0.72rem;
    line-height: 1.4;
    margin-top: 7px;
}

.ai-score-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
}

.ai-score-row {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.62);
    color: var(--text-muted);
    font-size: 0.68rem;
    padding: 7px 8px;
}

.ai-score-row-top {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.ai-score-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-score-row b {
    color: var(--text-main);
    font-family: var(--font-mono);
    flex: 0 0 auto;
}

.ai-score-meter {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    height: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.ai-score-meter span {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.78), rgba(46, 213, 115, 0.72));
    display: block;
    height: 100%;
}

.ai-attribution-note {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: #a8c2df;
    font-size: 0.68rem;
    line-height: 1.35;
    margin-top: 8px;
    padding: 7px 8px;
}

.ai-attribution-note b {
    color: var(--accent);
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-msg {
    max-width: min(1320px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.032);
    border-radius: 8px;
    padding: 14px 16px;
    min-width: 0;
}

.ai-msg-assistant {
    align-self: stretch;
    width: 100%;
}

.ai-msg-user {
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.18);
    align-self: flex-end;
    max-width: min(760px, 86%);
}

.ai-msg-thinking {
    align-self: flex-start;
    border-color: rgba(56, 189, 248, 0.18);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.05), rgba(255, 255, 255, 0.03), rgba(56, 189, 248, 0.05));
    background-size: 220% 100%;
    animation: aiThinkingSweep 1.8s ease-in-out infinite;
}

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.ai-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.35;
    animation: aiTypingDot 1s ease-in-out infinite;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.ai-tool-loading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 10px 8px;
}

.ai-tool-loading span {
    color: #9dc8ff;
}

.ai-tool-loading b {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.35;
    animation: aiTypingDot 1s ease-in-out infinite;
}

.ai-tool-loading b:nth-child(3) { animation-delay: 0.15s; }
.ai-tool-loading b:nth-child(4) { animation-delay: 0.3s; }

@keyframes aiTypingDot {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@keyframes aiThinkingSweep {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-msg-thinking,
    .ai-typing-dots span,
    .ai-tool-loading b {
        animation: none;
    }
    .ai-typing-dots span,
    .ai-tool-loading b {
        opacity: 0.8;
    }
}

.ai-msg-role {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ai-msg-text {
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.58;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ai-narrative {
    white-space: normal;
    display: grid;
    gap: 12px;
}

.ai-narrative > p,
.ai-narrative-section p {
    margin: 0;
}

.ai-narrative-section {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.54);
    border-radius: 8px;
    padding: 13px 14px;
    margin-top: 0;
    display: grid;
    gap: 9px;
}

.ai-narrative-section:first-child {
    margin-top: 0;
}

.ai-narrative-heading {
    color: #dbe7ff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-narrative-heading i {
    color: var(--accent);
    width: 14px;
    text-align: center;
}

.ai-section-summary,
.ai-section-assessment {
    border-color: rgba(125, 211, 252, 0.24);
    background: rgba(14, 40, 58, 0.38);
}

.ai-section-findings,
.ai-section-facts {
    border-color: rgba(46, 213, 115, 0.22);
    background: rgba(10, 42, 30, 0.28);
}

.ai-section-claims,
.ai-section-provenance {
    border-color: rgba(99, 102, 241, 0.24);
    background: rgba(35, 36, 72, 0.3);
}

.ai-section-inferences,
.ai-section-attribution {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(52, 28, 77, 0.28);
}

.ai-section-contradictions,
.ai-section-caveats,
.ai-section-avoid {
    border-color: rgba(255, 71, 87, 0.3);
    background: rgba(70, 22, 30, 0.3);
}

.ai-section-noise,
.ai-section-questions {
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(65, 44, 12, 0.24);
}

.ai-section-pivots,
.ai-section-next,
.ai-section-guidance {
    border-color: rgba(255, 204, 0, 0.25);
    background: rgba(60, 48, 7, 0.22);
}

.ai-narrative-list {
    margin: 0;
    padding-left: 20px;
}

.ai-narrative-list li {
    color: var(--text-main);
    margin: 5px 0;
    padding-left: 4px;
}

.ai-report-narrative {
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: linear-gradient(180deg, rgba(8, 18, 28, 0.9), rgba(8, 12, 20, 0.74));
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.ai-report-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
    padding: 16px 18px;
}

.ai-report-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.ai-report-head h4 {
    color: var(--text-main);
    font-size: 1.04rem;
    font-weight: 850;
    line-height: 1.35;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

.ai-report-subtitle {
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-top: 5px;
}

.ai-report-narrative .ai-narrative-section {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin: 0;
    padding: 14px 18px;
}

.ai-report-narrative .ai-narrative-section + .ai-narrative-section {
    border-top: 0;
}

.ai-msg-muted {
    color: var(--text-muted);
}

.ai-context-notice {
    margin: 0 14px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.07);
    color: #9dc8ff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ai-intel-box {
    margin-top: 12px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(14, 24, 38, 0.64);
    border-radius: 8px;
    padding: 12px;
}

.ai-intel-title {
    align-items: center;
    color: #9dc8ff;
    cursor: pointer;
    display: flex;
    font-size: 0.68rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0.6px;
    list-style: none;
    text-transform: uppercase;
}

.ai-intel-title::-webkit-details-marker {
    display: none;
}

.ai-intel-title::after {
    color: var(--text-muted);
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 0.64rem;
    font-weight: 900;
    transition: transform 0.16s ease;
}

.ai-intel-box[open] .ai-intel-title::after {
    transform: rotate(180deg);
}

.ai-intel-section {
    margin-top: 12px;
}

.ai-intel-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-intel-item,
.ai-intel-pivot {
    margin-top: 6px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 7px;
}

.ai-intel-gap {
    border-color: rgba(245, 158, 11, 0.28);
}

.ai-intel-contradiction {
    border-color: rgba(255, 71, 87, 0.32);
    background: rgba(255, 71, 87, 0.055);
}

.ai-intel-hypothesis {
    border-color: rgba(168, 85, 247, 0.28);
    background: rgba(168, 85, 247, 0.055);
}

.ai-intel-report {
    border-color: rgba(46, 213, 115, 0.26);
    background: rgba(46, 213, 115, 0.045);
}

.ai-intel-statement {
    color: var(--text-main);
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ai-intel-meta {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.3;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.ai-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
}

.ai-actions-heading {
    grid-column: 1 / -1;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ai-action-card {
    border: 1px solid rgba(255, 204, 0, 0.18);
    background: rgba(255, 204, 0, 0.055);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ai-action-head {
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ai-action-head i {
    color: var(--accent);
    margin-top: 2px;
}

.ai-action-reason {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    margin: 5px 0 8px;
    flex: 1;
}

.ai-run-action {
    padding: 6px 10px;
    font-size: 0.76rem;
}

.ai-rejected-pivots {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.58);
    border-radius: 8px;
    padding: 8px 10px;
}

.ai-rejected-pivots summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ai-rejected-body {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.ai-rejected-row {
    border-left: 3px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 6px;
    padding: 7px 8px;
}

.ai-rejected-title {
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ai-rejected-reason,
.ai-rejected-tags {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.ai-rejected-tags {
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.ai-input-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #0b111d;
}

.ai-input-row textarea {
    flex: 1;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 11px;
    outline: none;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.ai-input-row textarea:focus { border-color: var(--accent); }

.ai-input-row .btn-primary {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
}

/* ==========================================================================
   SETTINGS - MANTIS AI (CLEAN MINIMAL REDESIGN)
   ========================================================================== */

.ai-settings-card {
    margin-bottom: 24px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.ai-settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-settings-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-settings-card-title i {
    font-size: 1.25rem;
    color: var(--accent);
}

.ai-settings-card-title h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.ai-settings-card-title p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ai-config-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-field-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.ai-field-group-narrow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 600px;
}

.ai-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ai-field label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-field label i {
    color: var(--accent);
    font-size: 0.75rem;
    opacity: 0.85;
}

.ai-field input,
.ai-field select {
    width: 100%;
    padding: 9px 12px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: var(--font-ui) !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.ai-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffcc00'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px 14px !important;
    padding-right: 32px !important;
    appearance: none;
}

.ai-field select option {
    background: #0f172a;
    color: #f8fafc;
}

.ai-field input:focus,
.ai-field select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.18) !important;
    outline: none !important;
}

.ai-field input:disabled,
.ai-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03) !important;
}

.ai-mono-input {
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
}

.ai-category-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.ai-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #94a3b8;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.ai-category-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.ai-category-pill.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.4);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.1);
}

.ai-category-pill i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.ai-category-pill.active i {
    opacity: 1;
    color: var(--accent);
}

.ai-model-wrapper {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ai-model-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.ai-model-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.16s ease;
    user-select: none;
    line-height: 15px;
}

.ai-model-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 204, 0, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-model-pill.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.35);
    color: var(--accent);
}

.ai-path-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ai-path-wrapper input {
    flex: 1;
    min-width: 0;
}

.ai-path-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ai-field-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.45;
}

.ai-field-hint code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.ai-cli-status-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    min-height: 38px;
}

.ai-sso-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    margin-top: 4px;
    gap: 16px;
    min-height: 52px;
}

.ai-sso-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-ui);
}

.ai-sso-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
}

.ai-sso-badge.signed-in {
    color: #4ade80;
}

.ai-sso-badge.signed-in i {
    color: #22c55e;
}

.ai-sso-badge.not-signed-in {
    color: #cbd5e1;
}

.ai-sso-badge.not-signed-in i {
    color: #eab308;
}

.ai-sso-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-path-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    font-family: var(--font-ui);
}

.ai-path-status-badge.valid {
    color: #4ade80;
}

.ai-path-status-badge.valid code {
    font-family: var(--font-mono);
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.ai-path-status-badge.invalid {
    color: #fca5a5;
}

.ai-path-status-badge.invalid code {
    font-family: var(--font-mono);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.ai-provider-hint {
    margin-top: 4px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-provider-hint i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-provider-hint code {
    padding: 2px 6px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.ai-settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-status-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ai-status-container.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.ai-status-container.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.ai-status-container.testing {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    color: var(--accent);
}

@media (max-width: 900px) {
    .ai-field-group,
    .ai-field-group-narrow {
        grid-template-columns: 1fr;
    }
}

.mantis-ai-page {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 32px;
}

.mantis-ai-search-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 0 22px;
}

.mantis-ai-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px 0 28px;
}

.mantis-ai-brand > i {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 204, 0, 0.28);
    background: rgba(255, 204, 0, 0.08);
    color: var(--accent);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.mantis-ai-brand h1 {
    margin: 0;
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 800;
    color: var(--text-main);
}

.mantis-ai-brand p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mantis-ai-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 28px;
}

.mantis-ai-tabs button {
    height: 46px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font: 800 0.78rem var(--font-ui);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mantis-ai-tabs button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.mantis-ai-search-box {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 132px;
    align-items: stretch;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    overflow: hidden;
}

.mantis-ai-search-box > i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.mantis-ai-search-box textarea {
    min-height: 58px;
    max-height: 130px;
    resize: vertical;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--text-main);
    outline: none;
    padding: 16px 14px;
    font: 0.94rem var(--font-ui);
}

.mantis-ai-search-box textarea::placeholder {
    color: rgba(148, 163, 184, 0.82);
}

.mantis-ai-search-box .btn-primary {
    border-radius: 0;
    min-height: 58px;
    justify-content: center;
}

.mantis-ai-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.mantis-ai-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mantis-ai-workflows {
    max-width: 980px;
    margin: 4px auto 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}

.mantis-ai-workflows button {
    min-height: 84px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: 800 0.78rem var(--font-ui);
    text-align: center;
}

.mantis-ai-workflows button:hover {
    border-color: rgba(255, 204, 0, 0.32);
    background: rgba(255, 204, 0, 0.055);
}

.mantis-ai-workflows i {
    color: var(--accent);
    font-size: 1.1rem;
}

.mantis-ai-context {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mantis-ai-context h3 {
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.mantis-ai-context p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .mantis-ai-page { padding: 20px 16px; }
    .mantis-ai-brand { justify-content: flex-start; }
    .mantis-ai-brand h1 { font-size: 2.25rem; }
    .mantis-ai-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mantis-ai-search-box { grid-template-columns: 40px minmax(0, 1fr); }
    .mantis-ai-search-box .btn-primary { grid-column: 1 / -1; border-top: 1px solid var(--border); }
    .mantis-ai-workflows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mantis-ai-context { align-items: stretch; flex-direction: column; }
}
.nav-subitem.locked {
    opacity: 0.42;
    cursor: not-allowed;
}
.nav-subitem.locked:hover {
    background: transparent;
    color: var(--text-muted);
}
.nav-lock {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* MISP Galaxy & Threat Actor Intelligence - Premium Layout */
.galaxy-scroll-wrap {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Command Hero Header */
.galaxy-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.75) 0%, rgba(9, 13, 22, 0.9) 100%);
    border: 1px solid rgba(255, 204, 0, 0.16);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}
.galaxy-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}
.galaxy-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 170, 0, 0.05));
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
    flex-shrink: 0;
}
.galaxy-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.galaxy-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.galaxy-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.3px;
}
.galaxy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 9px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.galaxy-hero-badge i {
    font-size: 0.45rem;
    color: #22c55e;
    animation: pulse 2s infinite;
}
.galaxy-hero-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    max-width: 720px;
}
.galaxy-hero-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.galaxy-stat-pill {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.galaxy-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
}
.galaxy-stat-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: var(--font-mono);
}

/* Kaspersky TIP Theme Variant */
.ktip-hero {
    border-color: rgba(16, 185, 129, 0.25);
}
.ktip-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.06));
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.18);
}
.ktip-badge {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.ktip-sidebar-card {
    width: 250px;
    flex-shrink: 0;
    background: rgba(13, 19, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ktip-filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ktip-filter-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ktip-filter-title i {
    color: #34d399;
}
.ktip-filter-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* Category Subtabs Strip */
.galaxy-subtabs-card {
    background: rgba(13, 19, 33, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 14px;
    backdrop-filter: blur(8px);
}
.galaxy-subtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    margin-bottom: 0;
}
.galaxy-subtab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.galaxy-subtab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 204, 0, 0.35);
    color: #f1f5f9;
}
.galaxy-subtab.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.15);
}

/* Search & Toolbar */
.galaxy-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(13, 19, 33, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
    backdrop-filter: blur(8px);
}
.galaxy-search-wrap {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
}
.galaxy-search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
}
.galaxy-search-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(6, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 6px;
    padding: 8px 12px 8px 36px;
    outline: none;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
}
.galaxy-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
    background: rgba(6, 10, 18, 0.95);
}
.galaxy-toolbar-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}
.galaxy-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: var(--font-mono);
}
.galaxy-count-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.galaxy-count-val {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}
.galaxy-count-sub {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

/* Galaxy Grid & Threat Actor Cards */
.galaxy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    align-content: start;
    padding-right: 4px;
}

/* Premium Threat Actor Cards */
.ta-card-premium {
    background: linear-gradient(145deg, rgba(16, 22, 34, 0.75) 0%, rgba(9, 13, 22, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.ta-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--ta-accent, var(--accent));
    box-shadow: 0 0 10px var(--ta-accent, var(--accent));
    transition: all 0.2s ease;
}
.ta-card-premium:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(20, 28, 44, 0.85) 0%, rgba(12, 17, 28, 0.95) 100%);
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.ta-card-premium:hover::before {
    width: 4px;
}

/* Card Header */
.ta-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.ta-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}
.ta-card-premium:hover .ta-card-name {
    color: #fff;
}
.ta-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    flex-shrink: 0;
}
.ta-card-pill.origin.unattributed {
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

/* Meta Row */
.ta-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
}
.ta-card-pill.source {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.ta-card-pill.source i {
    color: var(--accent);
    opacity: 0.85;
}
.ta-card-uuid {
    font-family: var(--font-mono);
    color: #64748b;
    font-size: 0.7rem;
}

/* Aliases */
.ta-card-aliases {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.75rem;
}
.ta-alias-label {
    color: #64748b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
}
.ta-alias-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.ta-alias-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 6px;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-family: var(--font-mono);
}
.ta-alias-more {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Targets */
.ta-card-targets {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-card-targets i {
    color: #38bdf8;
    font-size: 0.7rem;
}

/* Description */
.ta-card-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Match & Related */
.ta-card-match {
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.72rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ta-card-related {
    font-size: 0.72rem;
    color: #e3b341;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Footer */
.ta-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    margin-top: auto;
}
.ta-card-inspect {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent);
    transition: transform 0.2s ease, color 0.2s ease;
}
.ta-card-inspect i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}
.ta-card-premium:hover .ta-card-inspect i {
    transform: translateX(3px);
}

/* CTI Articles report table: dense rows, sticky header, mono indicators. */
.cti-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 0.85rem;
}
.cti-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 1;
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}
.cti-table tbody td {
    padding: 16px;
    background: rgba(19, 24, 34, 0.4);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cti-table tbody td:first-child {
    border-left: 1px solid rgba(255,255,255,0.06);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.cti-table tbody td:last-child {
    border-right: 1px solid rgba(255,255,255,0.06);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.cti-table tbody tr {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cti-table tbody tr:hover td {
    background: rgba(38, 45, 58, 0.6);
    border-color: rgba(255, 204, 0, 0.15);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.cti-table tbody tr:hover {
    transform: translateY(-2px);
}
.cti-row-title {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    cursor: pointer;
    overflow-wrap: anywhere;
}
.cti-row-title:hover {
    color: var(--accent);
}

/* CTI Articles Blog Banner / Thumbnail styling */
.cti-row-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cti-thumb-box {
    width: 124px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cti-table tr:hover .cti-thumb-box {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.cti-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cti-table tr:hover .cti-thumb-img {
    transform: scale(1.08);
}

.cti-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #0e172a 0%, #1a253a 100%);
    position: relative;
    overflow: hidden;
}

.cti-thumb-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 25%, rgba(56, 189, 248, 0.18), transparent 75%);
}

.cti-thumb-fallback.cat-analyst {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.cti-thumb-fallback.cat-community {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.cti-thumb-fallback.cat-media {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.cti-thumb-fallback.cat-vendor {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.cti-thumb-favicon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.cti-thumb-fallback i {
    font-size: 0.76rem;
    color: #94a3b8;
    z-index: 1;
}

.cti-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
    border-radius: 9px;
}

.cti-thumb-box:hover .cti-thumb-overlay {
    opacity: 1;
}

.cti-row-info {
    flex: 1;
    min-width: 0;
}

.cti-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cti-source-ico {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
}

.cti-modal-hero-banner {
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cti-modal-hero-banner img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.cti-row-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cti-row-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.cti-ind {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-main);
    overflow-wrap: anywhere;
    display: block;
    line-height: 1.5;
}
.cti-ind-more {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.cti-ai-summary-panel {
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.22);
    border-radius: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
}
.cti-ai-summary-title {
    align-items: center;
    color: var(--accent);
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 8px;
}
.cti-ai-summary-title small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: auto;
}
.cti-ai-summary-text {
    color: var(--text-main);
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0 0 10px;
}
.cti-ai-summary-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cti-ai-summary-section {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px 10px;
}
.cti-ai-summary-section-wide {
    grid-column: 1 / -1;
}
.cti-ai-summary-heading {
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.cti-ai-summary-section ul {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
    padding-left: 18px;
}
.cti-ai-summary-loading,
.cti-ai-summary-error {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.cti-ai-summary-error {
    color: var(--danger);
}
.cti-ioc-extractor-panel {
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
}
.cti-ioc-extractor-title {
    align-items: center;
    color: #5eead4;
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 8px;
}
.cti-ioc-extractor-title small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: auto;
}
.cti-ioc-countline,
.cti-ioc-extractor-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 8px;
}
.cti-ioc-group {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 8px 12px;
}
.cti-ioc-group summary {
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}
.cti-ioc-group summary span {
    color: var(--text-muted);
}
.cti-ioc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.cti-ioc-row {
    align-items: flex-start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
}
.cti-ioc-value {
    font-size: 0.82rem;
    min-width: 0;
}
.cti-ioc-desc {
    color: var(--text-muted);
    font-size: 0.74rem;
    grid-column: 1 / -1;
    line-height: 1.4;
}

.todays-intel-pane {
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100%;
    overflow-y: auto;
    padding: 8px 12px 28px;
}
.todays-intel-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.todays-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(255,204,0,0.12), rgba(45,55,72,0.18));
    border: 1px solid rgba(255,204,0,0.2);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 20px;
}
.todays-eyebrow {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.todays-hero h1 {
    color: var(--text-main);
    font-size: 1.6rem;
    margin: 4px 0;
}
.todays-hero p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    max-width: 760px;
}
.todays-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.todays-filterbar {
    align-items: center;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 0.75fr 1.1fr 0.85fr repeat(3, 1fr) auto auto;
    padding: 12px;
}
.todays-filterbar input,
.todays-filterbar select {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.78rem;
    min-width: 0;
    outline: none;
    padding: 7px 9px;
}
.todays-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 2px;
}
.todays-active-filters span {
    background: rgba(255,204,0,0.08);
    border: 1px solid rgba(255,204,0,0.22);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
}
.todays-active-filters b {
    color: var(--accent);
}
.todays-summary-surface {
    background: rgba(12,17,26,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}
.todays-health-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.todays-health-strip span {
    align-items: center;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 0.7rem;
    gap: 5px;
    line-height: 1;
    padding: 6px 9px;
}
.todays-health-strip span.ok i { color: var(--success); }
.todays-health-strip span.warn i { color: var(--warning, #f6ad55); }
.todays-health-strip b {
    color: var(--text-main);
}
.todays-overview {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
}
.todays-metric {
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    display: flex;
    gap: 10px;
    min-height: 62px;
    padding: 11px 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.todays-metric:hover {
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,204,0,0.16);
}
.todays-metric i {
    color: var(--accent);
    font-size: 1rem;
}
.todays-metric strong {
    color: var(--text-main);
    display: block;
    font-size: 1.22rem;
    line-height: 1;
}
.todays-metric span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.todays-metric.danger i { color: var(--danger); }
.todays-metric.warning i { color: var(--warning, #f6ad55); }
.todays-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.todays-workbench {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.todays-panel-wide {
    grid-column: 1 / -1;
}
.todays-brief-banner {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(255,204,0,0.075), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,204,0,0.18);
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 16px 18px;
}
.todays-brief-banner span {
    color: var(--accent);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.todays-brief-banner h3 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin: 0 0 5px;
}
.todays-brief-banner p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    max-width: 900px;
}
.todays-brief-banner > b {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 0.72rem;
}
.todays-panel,
.todays-ai-panel {
    background: rgba(12,17,26,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 18px;
}
.todays-section-title {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 22px;
}
.todays-section-title i {
    color: var(--accent);
}
.todays-section-title h3 {
    color: var(--text-main);
    font-size: 0.98rem;
    margin: 0;
}
.todays-section-title span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: auto;
}
.todays-section-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin: -4px 0 12px;
}
.todays-social-campaigns {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 14px;
}
.todays-row {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    color: inherit;
    display: block;
    margin-bottom: 10px;
    padding: 11px 12px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}
button.todays-row {
    cursor: pointer;
}
.todays-row:hover {
    border-color: rgba(255,204,0,0.35);
    background: rgba(255,204,0,0.045);
}
.todays-row:last-child {
    margin-bottom: 0;
}
.todays-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 12px;
    width: 100%;
}
.todays-page-btn {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 30px;
    padding: 6px 8px;
}
.todays-page-btn:hover,
.todays-page-btn.active {
    background: rgba(255,204,0,0.12);
    border-color: rgba(255,204,0,0.32);
    color: var(--accent);
}
.todays-row strong {
    color: var(--text-main);
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
}
.todays-row span {
    color: var(--text-muted);
    display: block;
    font-size: 0.77rem;
    line-height: 1.4;
    margin-top: 4px;
}
.todays-row small {
    color: var(--text-muted);
    display: block;
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 5px;
}
.todays-row-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.todays-row-head strong {
    min-width: 0;
}
.todays-row-head b {
    background: rgba(255,204,0,0.09);
    border: 1px solid rgba(255,204,0,0.24);
    border-radius: 999px;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.62rem;
    line-height: 1;
    padding: 4px 7px;
    text-transform: uppercase;
}
.todays-row-head b.danger {
    background: rgba(255,77,109,0.11);
    border-color: rgba(255,77,109,0.28);
    color: var(--danger);
}
.todays-row-head b.warning {
    background: rgba(246,173,85,0.1);
    border-color: rgba(246,173,85,0.26);
    color: var(--warning, #f6ad55);
}
.todays-row-head b.muted {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-muted);
}
.todays-vuln-row {
    border-left: 3px solid rgba(255,204,0,0.55);
}
.todays-row .todays-score {
    color: var(--accent);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    margin-left: 4px;
}
.todays-empty,
.todays-chip-cloud em {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.todays-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.todays-entity-block + .todays-entity-block {
    margin-top: 12px;
}
.todays-entity-block > strong {
    color: var(--text-muted);
    display: block;
    font-size: 0.72rem;
    margin-bottom: 7px;
    text-transform: uppercase;
}
.todays-chip-cloud span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
}
.todays-chip-cloud b {
    color: var(--accent);
    margin-left: 4px;
}
.todays-social-contributors {
    margin-top: 4px;
}
.todays-ai-panel {
    border-color: rgba(255,204,0,0.25);
    background: rgba(255,204,0,0.055);
    margin: 2px 0 4px;
}
.todays-ai-title {
    align-items: center;
    color: var(--accent);
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.todays-ai-title span {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-left: auto;
}
.todays-ai-panel p {
    color: var(--text-main);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.todays-ai-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.todays-ai-section {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 11px 12px;
}
.todays-ai-section h4 {
    color: var(--text-main);
    font-size: 0.78rem;
    margin: 0 0 6px;
}
.todays-ai-section h4 i {
    color: var(--accent);
    margin-right: 6px;
}
.todays-ai-section ul {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
    padding-left: 18px;
}
.todays-report {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.todays-report-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 12px;
}
.todays-report-header h3 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin: 0 0 6px;
}
.todays-report-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}
.todays-report-header span {
    background: rgba(255,204,0,0.1);
    border: 1px solid rgba(255,204,0,0.22);
    border-radius: 999px;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 9px;
    text-transform: uppercase;
}
.todays-report-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.todays-report-section {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 13px;
}
.todays-report-section h4 {
    align-items: center;
    color: var(--text-main);
    display: flex;
    font-size: 0.78rem;
    gap: 7px;
    margin: 0 0 7px;
}
.todays-report-section h4 i {
    color: var(--accent);
}
.todays-report-section p,
.todays-report-section li {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.48;
}
.todays-report-section p {
    margin: 0;
}
.todays-report-section ul {
    margin: 0;
    padding-left: 18px;
}
.todays-ai-loading,
.todays-ai-error {
    color: var(--text-muted);
    font-size: 0.86rem;
}
.todays-ai-error {
    color: var(--danger);
}
@media (max-width: 1100px) {
    .todays-overview { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    .todays-grid { grid-template-columns: 1fr; }
    .todays-workbench { grid-template-columns: 1fr; }
    .todays-hero { align-items: flex-start; flex-direction: column; }
    .todays-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .todays-overview { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .todays-brief-banner { flex-direction: column; }
    .todays-report-header { flex-direction: column; }
    .todays-summary-surface { padding: 12px; }
    .todays-filterbar { grid-template-columns: 1fr; }
}
.x-monitor-pane {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    overflow-y: auto;
    padding: 8px 12px 28px;
}
.xmon-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(255,204,0,0.10), rgba(12,17,26,0.82));
    border: 1px solid rgba(255,204,0,0.18);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}
.xmon-title {
    align-items: center;
    display: flex;
    gap: 14px;
}
.xmon-xmark {
    align-items: center;
    color: currentColor;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
}
.nav-xmark {
    color: var(--text-muted);
    flex: 0 0 18px;
    font-size: 0.9rem;
    width: 18px;
}
.xmon-mark {
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    color: var(--accent);
    display: flex;
    flex: 0 0 48px;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
}
.xmon-eyebrow {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.xmon-hero h1 {
    color: var(--text-main);
    font-size: 1.65rem;
    margin: 3px 0;
}
.xmon-hero p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    max-width: 830px;
}
.xmon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.xmon-filterbar {
    align-items: center;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 0.7fr)) auto auto auto;
    padding: 12px;
}
.xmon-filterbar input,
.xmon-filterbar select {
    background: #070b12;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.78rem;
    min-width: 0;
    outline: none;
    padding: 8px 10px;
}
.xmon-filterbar select option {
    background: #0f1724;
    color: var(--text-main);
}
.xmon-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.xmon-summary {
    background: rgba(12,17,26,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
}
.xmon-health {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.xmon-health span {
    align-items: center;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 0.7rem;
    gap: 5px;
    padding: 6px 9px;
}
.xmon-health span.ok i { color: var(--success); }
.xmon-health span.warn i { color: var(--warning, #f6ad55); }
.xmon-health b { color: var(--text-main); }
.xmon-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(8, minmax(110px, 1fr));
}
.xmon-metric {
    align-items: center;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    display: flex;
    gap: 10px;
    min-height: 62px;
    padding: 10px 12px;
}
.xmon-metric i {
    color: var(--accent);
    font-size: 1rem;
}
.xmon-metric.warm i { color: #f6ad55; }
.xmon-metric.pink i { color: #ff5d9e; }
.xmon-metric.danger i { color: var(--danger); }
.xmon-metric strong {
    color: var(--text-main);
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}
.xmon-metric span {
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
}
.xmon-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.xmon-tabs button {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 11px;
}
.xmon-tabs button.active,
.xmon-tabs button:hover {
    background: rgba(255,204,0,0.11);
    border-color: rgba(255,204,0,0.35);
    color: var(--accent);
}
.xmon-tabs b {
    color: var(--text-main);
    margin-left: 4px;
}
.xmon-feed-shell {
    background: rgba(12,17,26,0.54);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
}
.xmon-feed-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.xmon-feed-title h3 {
    color: var(--text-main);
    font-size: 1rem;
    margin: 0;
}
.xmon-feed-title p {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.35;
    margin: 4px 0 0;
}
.xmon-feed-title span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
}
.xmon-feed {
    column-count: 4;
    column-gap: 14px;
}
.xmon-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    break-inside: avoid;
    display: inline-block;
    margin: 0 0 14px;
    padding: 13px;
    width: 100%;
}
.xmon-card:hover {
    border-color: rgba(255,204,0,0.30);
    background: rgba(255,204,0,0.035);
}
.xmon-card header {
    align-items: center;
    display: flex;
    gap: 9px;
    margin-bottom: 10px;
}
.xmon-avatar {
    flex: 0 0 38px;
    height: 38px;
    width: 38px;
}
.xmon-avatar img,
.xmon-avatar-fallback {
    border-radius: 50%;
    height: 38px;
    object-fit: cover;
    width: 38px;
}
.xmon-avatar-fallback {
    align-items: center;
    background: linear-gradient(135deg, rgba(255,204,0,0.26), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,204,0,0.24);
    color: var(--accent);
    display: flex;
    font-size: 0.78rem;
    font-weight: 900;
    justify-content: center;
}
.xmon-author {
    min-width: 0;
}
.xmon-author strong {
    color: var(--text-main);
    display: block;
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xmon-author span {
    color: var(--text-muted);
    display: block;
    font-size: 0.7rem;
}
.xmon-card header a {
    color: var(--text-muted);
    margin-left: auto;
    text-decoration: none;
}
.xmon-card header a:hover {
    color: var(--accent);
}
.xmon-card p {
    color: var(--text-main);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0 0 11px;
    white-space: pre-wrap;
    word-break: break-word;
}
.xmon-media-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 0 10px;
}
.xmon-media-grid.count-1 {
    grid-template-columns: 1fr;
}
.xmon-media-grid a {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    display: block;
    min-height: 118px;
    overflow: hidden;
}
.xmon-media-grid img {
    aspect-ratio: 16 / 9;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.xmon-url-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 9px 0;
}
.xmon-url-list code {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    color: #8ecbff;
    font-size: 0.72rem;
    padding: 5px 7px;
    white-space: normal;
    word-break: break-all;
}
.xmon-entity-strip,
.xmon-tags,
.xmon-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.xmon-entity-strip span,
.xmon-tags span,
.xmon-cats span {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 750;
    padding: 4px 7px;
}
.xmon-entity-strip span {
    color: var(--accent);
}
.xmon-entity-strip b {
    color: var(--text-main);
}
.xmon-tweet-meta {
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 10px;
    margin-top: 11px;
    padding-top: 10px;
}
.xmon-tweet-meta span {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}
.xmon-tweet-meta i {
    color: #8ecbff;
    font-size: 0.68rem;
}
.xmon-card footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 11px;
}
.xmon-cats span {
    color: var(--accent);
    text-transform: capitalize;
}
.xmon-empty {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 260px;
    padding: 30px;
    text-align: center;
}
.xmon-empty.compact {
    min-height: auto;
    padding: 18px;
}
.xmon-empty i {
    color: var(--accent);
    font-size: 2rem;
}
.xmon-empty h3 {
    color: var(--text-main);
    margin: 0;
}
.xmon-empty p {
    margin: 0;
    max-width: 520px;
}
.xmon-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 14px;
}
.xmon-pager button {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 30px;
    padding: 6px 8px;
}
.xmon-pager button.active,
.xmon-pager button:hover {
    background: rgba(255,204,0,0.12);
    border-color: rgba(255,204,0,0.32);
    color: var(--accent);
}
.xmon-page-gap {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 2px;
}
.xmon-modal-backdrop {
    background: rgba(2,6,12,0.78);
    backdrop-filter: blur(7px);
    inset: 0;
    padding: 28px;
    position: fixed;
    z-index: 9000;
}
.xmon-modal {
    background: #0b111b;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: min(880px, calc(100vh - 56px));
    margin: 0 auto;
    max-width: 1180px;
    overflow: hidden;
    padding: 18px;
}
.xmon-modal > header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.xmon-modal h2 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin: 0 0 4px;
}
.xmon-modal p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}
.xmon-icon-btn {
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.xmon-icon-btn:hover {
    color: var(--accent);
}
.xmon-actions .btn-primary i,
.xmon-add-user i,
.xmon-save-account i {
    color: #101720;
}
.xmon-modal-tools {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) auto;
}
.xmon-account-search {
    align-items: center;
    background: #070b12;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 0 10px;
}
.xmon-account-search i {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.xmon-account-search input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.8rem;
    min-width: 0;
    outline: none;
    padding: 10px 0;
    width: 100%;
}
.xmon-account-form {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 132px 120px;
    padding: 12px;
}
.xmon-account-form.is-hidden {
    display: none;
}
.xmon-account-form input,
.xmon-account-form textarea {
    background: #070b12;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.78rem;
    padding: 8px 10px;
}
.xmon-account-form textarea {
    grid-column: 1 / 5;
    min-height: 48px;
    resize: vertical;
}
.xmon-save-account,
.xmon-account-form > .btn-secondary {
    align-items: center;
    align-self: stretch;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    line-height: 1;
    min-height: 48px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
}
.xmon-save-account i,
.xmon-account-form > .btn-secondary i {
    flex: 0 0 auto;
}
.xmon-account-form label {
    align-items: center;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 0.78rem;
    gap: 6px;
}
.xmon-account-table {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 3px;
}
.xmon-alpha-section {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.xmon-alpha-heading {
    align-items: center;
    background: rgba(255,204,0,0.07);
    border: 1px solid rgba(255,204,0,0.18);
    border-radius: 7px;
    color: var(--accent-yellow);
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0;
    padding: 6px 9px;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}
.xmon-alpha-heading b {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
}
.xmon-account-row {
    align-items: center;
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 78px auto auto auto;
    padding: 10px;
}
.xmon-account-row strong {
    color: var(--text-main);
    display: block;
    font-size: 0.84rem;
}
.xmon-account-link {
    color: var(--text-main);
    text-decoration: none;
}
.xmon-account-link:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}
.xmon-account-row span,
.xmon-account-row small {
    color: var(--text-muted);
    display: block;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xmon-account-row small.not-checked {
    color: var(--text-muted);
    font-style: italic;
}
.xmon-account-row > b {
    border-radius: 999px;
    font-size: 0.68rem;
    padding: 5px 8px;
    text-align: center;
}
.xmon-account-row > b.active {
    background: rgba(72,187,120,0.11);
    border: 1px solid rgba(72,187,120,0.22);
    color: var(--success);
}
.xmon-account-row > b.paused {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.11);
    color: var(--text-muted);
}
.xmon-account-row .danger {
    border-color: rgba(255,77,109,0.25);
    color: var(--danger);
}
@media (max-width: 1300px) {
    .xmon-metrics { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
    .xmon-feed { column-count: 3; }
    .xmon-filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .xmon-hero { align-items: flex-start; flex-direction: column; }
    .xmon-metrics { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
    .xmon-feed { column-count: 2; }
    .xmon-account-form { grid-template-columns: 1fr; }
    .xmon-account-form textarea { grid-column: auto; }
    .xmon-account-row { grid-template-columns: 1fr; }
    .xmon-modal-tools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .xmon-feed { column-count: 1; }
    .xmon-filterbar { grid-template-columns: 1fr; }
    .xmon-modal-backdrop { padding: 12px; }
    .xmon-modal { height: calc(100vh - 24px); }
}
.rl-intel {
    display: grid;
    gap: 14px;
    font-size: 0.85rem;
}

.rl-intel-header {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(120deg, rgb(255 204 0 / 7%), transparent 65%), var(--bg-main);
}

.rl-intel h4 { margin: 0 0 6px; color: var(--text-main); }
.rl-intel-header h4 { margin-top: 3px; font-size: 1.2rem; }
.rl-intel p { margin: 5px 0; overflow-wrap: anywhere; }
.rl-intel-meta { color: var(--text-muted); font-size: 0.76rem; }
.rl-intel-meta:empty { display: none; }
.rl-intel a { color: var(--accent); text-underline-offset: 2px; }

.rl-intel-rows,
.rl-intel-details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-main);
}

.rl-intel-rows { overflow-y: auto; max-height: 320px; }
.rl-intel-details summary { padding: 10px 12px; cursor: pointer; font-weight: 700; }
.rl-intel-details summary span { margin-left: 5px; color: var(--text-muted); font-size: 0.75rem; }
.rl-intel-details > .rl-intel-rows { border-width: 1px 0 0; border-radius: 0; }
.rl-intel section > .rl-intel-details { margin-top: 8px; }

.rl-intel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 9px 12px;
}

.rl-intel-row + .rl-intel-row { border-top: 1px solid var(--border); }
.rl-intel-content { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.rl-intel :is(code, pre) { font: 0.76rem/1.55 var(--font-mono); }
.rl-intel pre { white-space: pre-wrap; }
.rl-intel-status { color: var(--text-muted); font-size: 0.75rem; }
.rl-intel-status--up { color: var(--success); }
.rl-intel-status--down { color: var(--danger); }

.galaxy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgb(3 6 11 / 76%);
    backdrop-filter: blur(6px);
}

.galaxy-modal {
    width: min(100%, 740px);
    max-height: min(88dvh, 850px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.galaxy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px clamp(16px, 4vw, 30px) 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(125deg, rgb(255 204 0 / 7%), transparent 65%), var(--bg-main);
}

.galaxy-modal-heading { min-width: 0; }

#galaxy-modal-entity,
.galaxy-modal-eyebrow {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid rgb(255 204 0 / 26%);
    border-radius: 6px;
    background: rgb(255 204 0 / 8%);
    color: var(--accent);
    font: 600 0.7rem var(--font-mono);
    letter-spacing: 0.05em;
}

#galaxy-modal-title,
#cti-modal-title {
    margin: 9px 0 5px;
    color: var(--text-main);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#galaxy-modal-source,
#cti-modal-sub,
#galaxy-modal-match {
    color: var(--text-muted);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

#galaxy-modal-close,
.galaxy-modal-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgb(255 255 255 / 4%);
    color: var(--text-muted);
    cursor: pointer;
}

#galaxy-modal-close:hover,
.galaxy-modal-close:hover {
    color: var(--text-main);
    background: rgb(255 255 255 / 9%);
}

.galaxy-modal :is(button, a):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cti-search-results,
.cti-search-hit {
    display: grid;
    gap: 10px;
}

.cti-search-hit {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-main);
    overflow-wrap: anywhere;
}

.cti-search-hit-heading,
.cti-search-evidence,
.cti-reader-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 14px;
}

.cti-search-hit-heading { justify-content: space-between; }
.cti-search-hit-heading > div { min-width: 0; flex: 1 1 250px; }
.cti-search-hit h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--text-main); }
.cti-reader-muted { font-size: 0.78rem; color: var(--text-muted); }
.cti-search-evidence { font-size: 0.78rem; color: var(--accent); }
.cti-search-open { color: var(--accent); }
.cti-search-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.galaxy-modal.cti-reader { width: min(100%, 920px); }
.cti-reader-actions {
    padding: 10px clamp(16px, 4vw, 30px);
    border-bottom: 1px solid var(--border);
}
.cti-reader-actions a { text-decoration: none; }
.cti-reader [hidden] { display: none; }
.galaxy-modal-body.cti-reader-body { display: block; overflow-wrap: anywhere; }
.cti-reader-body > :not(:empty) + :not(:empty) { margin-top: 14px; }
#cti-reader-intel .cti-reader-muted { margin-bottom: 10px; }
#cti-modal-content {
    color: var(--text-main);
    font-size: 0.94rem;
    line-height: 1.75;
}
#cti-modal-content > :not(.cti-modal-hero-banner) { max-width: 74ch; }
#cti-modal-content :is(h1, h2, h3, h4) { margin: 1.5em 0 0.55em; line-height: 1.3; color: var(--text-main); }
#cti-modal-content :is(p, ul, ol, pre, figure, blockquote) { margin-bottom: 1.1em; }
#cti-modal-content :is(ul, ol) { padding-inline-start: 1.4em; }
#cti-modal-content :is(img, video, iframe) { max-width: 100%; }
#cti-modal-content img { height: auto; }
#cti-modal-content pre { white-space: pre-wrap; }
.cti-search-evidence code,
.cti-reader :is(code, pre),
#cti-modal-content a { font-family: var(--font-mono); }
#cti-modal-content a { color: #92caff; }
.cti-reader .cti-ioc-value { min-width: 0; }
.cti-reader .cti-ioc-value a { word-break: normal !important; overflow-wrap: anywhere; }

.galaxy-modal-body {
    min-height: 0;
    overflow-y: auto;
    padding: 18px clamp(16px, 4vw, 30px) 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.galaxy-modal-body section {
    flex: none;
    min-width: 0;
}

.galaxy-modal-body h3 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
}

.galaxy-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-wrap: anywhere;
}

#galaxy-modal-desc,
#galaxy-modal-refs {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgb(255 255 255 / 2%);
}

#galaxy-modal-desc {
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 0.875rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#galaxy-modal-refs > a {
    display: block;
    padding: 9px 14px;
    color: #92caff;
    font: 0.8rem/1.5 var(--font-mono);
    text-decoration: none;
    overflow-wrap: anywhere;
}

#galaxy-modal-refs > a:hover {
    background: rgb(255 255 255 / 4%);
    text-decoration: underline;
}

#galaxy-modal-refs > * + * { border-top: 1px solid var(--border); }

#galaxy-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 11px clamp(16px, 4vw, 30px);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font: 0.7rem var(--font-mono);
    overflow-wrap: anywhere;
}

#galaxy-modal-footer code { color: var(--text-main); }

.galaxy-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    transition: all 0.16s;
}
.galaxy-chip:hover {
    border-color: rgba(255, 204, 0, 0.55);
    color: var(--accent);
}
/* Galaxy pager bars (top + bottom of the results grid). */
.galaxy-pager {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 4px 0 10px;
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.galaxy-page-btn {
    min-width: 30px;
    padding: 4px 9px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    transition: all 0.15s;
}
.galaxy-page-btn:hover:not(:disabled) {
    color: var(--text-main);
    border-color: rgba(255, 204, 0, 0.45);
}
.galaxy-page-btn.active {
    background: rgba(255, 204, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.galaxy-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.galaxy-page-info {
    padding: 0 6px;
    font-weight: 600;
}

/* YARA Rule Workbench editor: textarea over a highlighted backdrop + gutter. */
.yara-editor-wrap {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
    min-height: 480px;
    max-height: 68vh;
}
.yara-editor-gutter {
    flex: 0 0 auto;
    width: 52px;
    padding: 12px 8px 12px 0;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    white-space: pre;
    box-sizing: border-box;
}
.yara-editor-gutter::-webkit-scrollbar {
    display: none;
}
.yara-editor-stack {
    position: relative;
    flex: 1;
    min-width: 0;
}
.yara-editor-highlight,
.yara-editor-input {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    outline: none !important;
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    white-space: pre !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    word-wrap: normal !important;
    word-break: normal !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
}
.yara-editor-highlight {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
    color: #dbe4f0 !important;
    pointer-events: none !important;
    background: transparent !important;
}
.yara-editor-highlight code {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    white-space: inherit !important;
    word-break: inherit !important;
}
.yara-editor-input {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 480px !important;
    max-height: 68vh !important;
    background: transparent !important;
    resize: vertical !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    caret-color: #fff !important;
    overflow: auto !important;
}
.yara-editor-input::selection {
    background: rgba(99, 102, 241, 0.35) !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
.yara-editor-input::placeholder {
    color: rgba(148, 163, 184, 0.5) !important;
    -webkit-text-fill-color: rgba(148, 163, 184, 0.5) !important;
}
.yara-editor-input::-moz-selection {
    background: rgba(99, 102, 241, 0.35) !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
.yara-tok-kw { color: #c792ea; }
.yara-tok-rule { color: #58a6ff; }
.yara-tok-str { color: #facc15; }
.yara-tok-com { color: #5b6572; }
.yara-tok-var { color: #7ee0c3; }
.yara-tok-meta { color: #e3b341; }
.yara-err-line {
    color: #ff6b6b;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 3px 0;
}
.yara-err-line:hover { text-decoration: underline; }

/* YARA Rule Workbench revamped editor & studio layout */
.yara-wb-scroll-wrap {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Command Hero Banner */
.yara-wb-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.75) 0%, rgba(9, 13, 22, 0.9) 100%);
    border: 1px solid rgba(255, 204, 0, 0.16);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}
.yara-wb-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}
.yara-wb-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 170, 0, 0.05));
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
    flex-shrink: 0;
}
.yara-wb-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.yara-wb-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.yara-wb-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.3px;
}
.yara-wb-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 9px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.yara-wb-badge-live i {
    font-size: 0.45rem;
    color: #22c55e;
    animation: pulse 2s infinite;
}
.yara-wb-hero-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    max-width: 720px;
}
.yara-wb-hero-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.yara-wb-stat-pill {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.yara-wb-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
}
.yara-wb-stat-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: var(--font-mono);
}
.yara-wb-stat-val kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* File Strip */
.yara-wb-file-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(13, 19, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
    backdrop-filter: blur(8px);
}
.yara-wb-file-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
}
.yara-wb-file-icon {
    color: var(--accent);
    font-size: 1rem;
}
.yara-wb-filename-input {
    flex: 0 1 280px;
    background: rgba(6, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 6px;
    padding: 7px 12px;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.yara-wb-filename-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
    background: rgba(6, 10, 18, 0.95);
}
.yara-wb-pill-counter {
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.22);
    color: var(--accent);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}
.yara-wb-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* AI Copilot Card */
.yara-ai-card-premium {
    margin-bottom: 0;
    border: 1px solid rgba(168, 85, 247, 0.22);
    background: linear-gradient(135deg, rgba(23, 14, 38, 0.7) 0%, rgba(13, 11, 23, 0.85) 100%);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.yara-ai-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
}
.yara-ai-magic-icon {
    color: #c084fc;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.5));
}
.yara-ai-state-badge {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Target Acquisition Bar */
.yara-wb-targetbar-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(13, 19, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
}
.yara-wb-target-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.yara-wb-target-icon {
    color: var(--accent);
    font-size: 0.9rem;
}
.yara-wb-target-input-wrap {
    flex: 1;
    min-width: 240px;
}
.yara-wb-target-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(6, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 6px;
    padding: 7px 12px;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    transition: all 0.2s ease;
}
.yara-wb-target-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
    background: rgba(6, 10, 18, 0.95);
}
.yara-wb-targets-pill {
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Studio Split View */
.yara-wb-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 1200px) {
    .yara-wb-split {
        grid-template-columns: minmax(0, 1fr);
    }
}
.yara-wb-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
}
.yara-wb-pane-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 0;
}
.yara-wb-pane-label i {
    color: var(--accent);
}
.yara-wb-pane-hint {
    font-size: 0.72rem;
    color: #64748b;
    font-family: var(--font-mono);
}

/* Upgraded Editor Wrap */
.yara-editor-wrap {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #060911;
    min-height: 520px;
    max-height: 68vh;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.yara-editor-wrap:focus-within {
    border-color: rgba(255, 204, 0, 0.4);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 204, 0, 0.1);
}
.yara-editor-gutter {
    background: rgba(10, 15, 26, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #475569;
    padding: 14px 10px 14px 4px;
    width: 48px;
}

/* Detection Telemetry Box & Empty State */
.yara-wb-results-col {
    display: flex;
    flex-direction: column;
}
.yara-det-body {
    flex: 1;
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    min-height: 480px;
    max-height: 68vh;
    overflow-y: auto;
}
.yara-wb-empty-telemetry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 380px;
    text-align: center;
    padding: 30px 20px;
}
.yara-wb-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
}
.yara-wb-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
}
.yara-wb-empty-desc {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 320px;
    line-height: 1.45;
    margin: 0;
}

/* Command Action Bar */
.yara-wb-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    padding: 12px 18px;
    background: rgba(13, 19, 33, 0.85);
    border: 1px solid rgba(255, 204, 0, 0.16);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}
.yara-wb-actionbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.yara-wb-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    font-family: var(--font-mono);
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
.yara-wb-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    margin-right: 8px;
    flex-shrink: 0;
}
.yara-btn-danger:not(:disabled) {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}
.yara-btn-danger:not(:disabled):hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

.yara-wb-targetbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 9px 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.yara-wb-targetbar-label {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.yara-wb-targets {
    flex: 1;
    min-width: 200px;
    color: var(--text-muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}
.yara-wb-targetbar-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
.yara-det-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.yara-det-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.yara-det-table th {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 20, 0.95);
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-align: left;
    padding: 7px 8px;
    border-bottom: 1px solid var(--border);
    z-index: 1;
}
.yara-det-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top;
    overflow-wrap: anywhere;
}
.yara-det-table tr:hover td { background: rgba(255,255,255,0.025); }
.yara-ai-card {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 204, 0, 0.14);
    background: rgba(255, 204, 0, 0.035);
    border-radius: 8px;
    padding: 10px 12px;
}
.yara-ai-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.86rem;
    margin-bottom: 8px;
}
.yara-ai-head i { color: var(--accent); }
.yara-ai-head span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
}
.yara-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}
.yara-ai-actions .btn-secondary {
    padding: 6px 10px;
    font-size: 0.75rem;
}
.yara-ai-output {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
.yara-ai-output pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}
.yara-ai-output .btn-primary,
.yara-ai-output .btn-secondary {
    padding: 6px 10px;
    font-size: 0.75rem;
    margin-right: 6px;
}
.yara-wb-corpus-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.yara-wb-corpus-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 600;
}
.yara-wb-corpus-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 400;
}

.sidebar-footer {
    padding: 8px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.18), rgba(10, 14, 23, 0.44));
}

.btn-settings {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    font-weight: 700;
    font-size: 0.82rem;
}

.btn-settings i:first-child {
    width: 15px;
    font-size: 0.82rem;
    text-align: center;
}

.btn-settings .nav-caret {
    margin-left: auto;
    font-size: 0.62rem;
    transition: transform 0.18s ease;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-left-color: transparent;
}

.btn-settings.active,
.sidebar-footer.settings-expanded .btn-settings {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-left-color: transparent;
}

.btn-settings.active i:first-child,
.btn-settings.active .nav-caret,
.sidebar-footer.settings-expanded .btn-settings i:first-child,
.sidebar-footer.settings-expanded .btn-settings .nav-caret {
    color: var(--text-main);
}

.sidebar-footer.settings-expanded .btn-settings .nav-caret {
    transform: rotate(90deg);
}

.settings-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 0 14px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer.settings-expanded .settings-nav {
    display: flex;
}

.settings-nav-item,
.settings-nav .settings-nav-route {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 29px;
    padding: 6px 10px;
    font: 700 0.74rem var(--font-ui);
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
}

.settings-nav-item:hover,
.settings-nav .settings-nav-route:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.settings-nav-item.active,
.settings-nav .settings-nav-route.active {
    background: rgba(255, 204, 0, 0.12);
    color: var(--accent);
}

.settings-nav-item i,
.settings-nav .settings-nav-route i {
    width: 14px;
    font-size: 0.75rem;
    text-align: center;
}

.tg-toolkit-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 36px;
}

.tg-toolkit {
    flex-direction: column;
    gap: 26px;
}

.tg-toolkit.tg-toolkit-visible {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
}

.tg-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.tg-section + .tg-section {
    margin-top: 0;
}

#tg-explorer-container {
    /* inside tg-toolkit flex — gap handled by parent */
}


.tg-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.tg-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.98rem;
}

.tg-section-title i,
.tg-inline-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.92rem;
    flex: 0 0 18px;
}

.tg-section-subtitle,
.tg-help-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.tg-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tg-mode-card {
    cursor: pointer;
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.tg-mode-card.active {
    border-color: rgba(255, 204, 0, 0.48);
    background: rgba(255, 204, 0, 0.06);
}

.tg-mode-card input { display: none; }

.tg-mode-main {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 7px;
}

.tg-mode-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex: 0 0 32px;
}

.tg-mode-card.active .tg-mode-icon {
    background: rgba(255, 204, 0, 0.14);
    color: var(--accent);
}

.tg-mode-name {
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.9rem;
}

.tg-mode-card.active .tg-mode-name { color: var(--accent); }

.tg-mode-meta {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.tg-mode-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.tg-callout {
    border: 1px solid rgba(255, 204, 0, 0.22);
    background: rgba(255, 204, 0, 0.045);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 0.84rem;
}

.tg-callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}

.tg-callout ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.tg-form-grid,
.tg-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.tg-form-grid input,
.tg-form-grid select,
.tg-filter-row input,
.tg-filter-row select,
.tg-auth-form input,
#tg-info-token {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    font-size: 0.82rem;
}

.tg-form-grid input:focus,
.tg-form-grid select:focus,
.tg-filter-row input:focus,
.tg-filter-row select:focus,
.tg-auth-form input:focus,
#tg-info-token:focus {
    border-color: var(--accent);
}

.tg-form-grid input[type="text"] {
    min-width: 180px;
}

#tg-bot-token { flex: 2; font-family: var(--font-mono); }
#tg-bot-chat,
#tg-bot-dstchat { flex: 1; }
#tg-msg-text { flex: 1; min-width: 180px; }

.tg-auth-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 430px;
}

.tg-status-box {
    color: var(--text-muted);
    font-size: 0.86rem;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 6px;
}

.tg-safety-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.tg-bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
    align-content: start;
}

.tg-bot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tg-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}

.tg-card-actions .btn-secondary {
    padding: 5px 10px;
    font-size: 0.74rem;
}

.tg-danger-action {
    color: var(--danger) !important;
    border-color: rgba(255, 71, 87, 0.32) !important;
}

.tg-icon-btn i,
.tg-card-actions i,
.tg-section .btn-primary i,
.tg-section .btn-secondary i {
    width: 14px;
    text-align: center;
    font-size: 0.82rem;
}

.tg-messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 900px) {
    .tg-toolkit-scroll { padding: 14px; }
    .tg-mode-grid { grid-template-columns: 1fr; }
}

.main-content { flex: 1; display: flex; flex-direction: column; padding: 28px 36px; min-width: 0; }

.pivot-link {
    color: var(--text-main) !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    padding-bottom: 0;
    cursor: text !important;
    pointer-events: none;
}

.pivot-link:hover {
    color: var(--text-main) !important;
    border-bottom: 0 !important;
    text-shadow: none;
}

.pivot-keyword-link {
    color: var(--text-main) !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    cursor: text !important;
    pointer-events: none;
}

.pivot-keyword-link:hover {
    color: var(--text-main) !important;
    border-bottom: 0 !important;
    text-shadow: none;
}

.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.content-header h2 { font-weight: 600; font-size: 1.6rem; color: #fff;}

.btn-primary {
    font-family: var(--font-ui) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    background: var(--accent);
    color: #0A0E17 !important;
    border: 1px solid rgba(255, 204, 0, 0.4);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: rgba(255, 204, 0, 0.7);
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.28);
}
.btn-primary i {
    color: #0A0E17 !important;
}
.btn-secondary {
    font-family: var(--font-ui) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    background: rgba(255, 255, 255, 0.035);
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: none;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.btn-secondary i {
    color: #94a3b8;
}
.btn-secondary:hover i {
    color: var(--accent);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-primary:disabled:hover { background: var(--accent-gradient); box-shadow: none; }

.btn-ai-action {
    background: var(--accent); color: var(--bg-main); border: none; padding: 10px 18px; border-radius: 6px;
    font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.25);
}
.btn-ai-action:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 204, 0, 0.45);}
.btn-ai-action:disabled {
    opacity: 0.38; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-ai-action:disabled:hover { background: var(--accent); box-shadow: none; }

.search-container { margin-bottom: 18px; }

/* ── Unified IOC Search — type pill tab bar ─────────────────────────── */
.ioc-tab-bar {
    display: flex;
    gap: 6px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ioc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
    letter-spacing: 0.25px;
    white-space: nowrap;
    font-family: var(--font-ui);
}

.ioc-tab i { font-size: 0.78rem; }

.ioc-tab:hover {
    background: rgba(255,255,255,0.09);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.ioc-tab.active {
    background: rgba(255,204,0,0.14);
    border-color: rgba(255,204,0,0.6);
    color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255,204,0,0.08);
}

.ioc-tab.active.detected {
    background: rgba(0, 230, 118, 0.14);
    border-color: rgba(0, 230, 118, 0.6);
    color: #00e676;
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.12);
}

.ioc-tab-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.1);
    margin: 0 2px;
    flex-shrink: 0;
    align-self: center;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(8, 11, 16, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 10px 8px 14px;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1);
}
.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25), inset 0 2px 4px rgba(0,0,0,0.2);
    background: rgba(8, 11, 16, 0.8);
}
.search-icon {
    color: #8eb6dc;
    margin-top: 0;
    flex-shrink: 0;
}

.search-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
}

.search-box input {
    flex: 1; width: 100%; background: transparent; border: none; color: white; font-size: 0.95rem; padding: 9px 6px; outline: none; font-family: var(--font-mono);
}

.search-box-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-box-actions button,
.search-box > button {
    white-space: nowrap;
    flex-shrink: 0;
}

.search-box-actions #btn-reset,
.search-box #btn-reset {
    min-height: 40px;
    padding: 10px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}






.btn-search {
    background: var(--accent-gradient); color: var(--bg-main); border: none; padding: 10px 22px; border-radius: 6px;
    font-weight: 700; cursor: pointer; transition: all 0.2s; min-height: 40px;
    box-shadow: 0 2px 8px rgba(255, 204, 0,0.15);
}
.btn-search:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 204, 0, 0.35); }
.btn-search:disabled { background: var(--text-muted); cursor: not-allowed; }

/* Report Viewer Modal */
.report-viewer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 7, 13, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.report-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.report-viewer-title, .report-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.report-viewer-header { gap: 12px; flex-wrap: wrap; }
.report-viewer-title { flex: 1 1 240px; min-width: 0; }
.report-viewer-heading { min-width: 0; }
.report-viewer-heading h2 {
    margin: 0;
    font: 700 15px/21px 'Plus Jakarta Sans', system-ui, sans-serif;
}
.report-viewer-heading code {
    color: var(--text-muted);
    font: 12px/18px 'IBM Plex Mono', monospace;
    overflow-wrap: anywhere;
}
.report-viewer-icon {
    padding: 10px;
    border-radius: 8px;
    color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
}
.report-viewer-actions { margin-inline-start: auto; gap: 6px; }
.report-viewer-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    min-height: 34px;
    padding: 5px 9px;
    font: 600 12px/18px 'Plus Jakarta Sans', system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
#report-modal-download { color: var(--accent); }
.report-viewer-frame {
    flex: 1;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: var(--bg-body);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.source-selector-panel {
    margin-bottom: 18px;
    background: rgba(14, 18, 25, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.source-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.source-selector-header > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.source-selector-actions {
    display: flex;
    gap: 6px;
}

.source-action-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    transition: all 0.2s;
}

.source-action-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 204, 0, 0.45);
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.1);
}

.source-action-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 204, 0, 0.12);
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.2);
}

.source-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.035);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.source-pill:hover {
    background: rgba(255,255,255,0.065);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.source-pill input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--accent);
    cursor: inherit;
}

.source-pill i {
    color: var(--accent);
    font-size: 0.78rem;
}

.source-pill.is-checked {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.6);
    box-shadow: inset 0 1px 4px rgba(255, 204, 0, 0.1), 0 2px 8px rgba(255, 204, 0, 0.2);
}

.source-pill.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.source-pill.is-disabled i {
    color: var(--text-muted);
}

.rl-posts-load,
.dnsdumpster-more-load,
.dnsdumpster-map-load,
.mn-load,
.abuseipdb-reports-load,
.urlscan-result-load,
.urlscan-more-load,
.ha-report-load,
.cb-more-load,
.shodan-load,
.censys-load,
.silentpush-load,
.driftnet-load,
.pulsedive-load {
    background: rgba(255, 204, 0, 0.10) !important;
    border: 1px solid rgba(255, 204, 0, 0.42) !important;
    color: var(--accent) !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    transition: all 0.2s;
}

.rl-posts-load:hover,
.dnsdumpster-more-load:hover,
.dnsdumpster-map-load:hover,
.mn-load:hover,
.abuseipdb-reports-load:hover,
.urlscan-result-load:hover,
.urlscan-more-load:hover,
.ha-report-load:hover,
.cb-more-load:hover,
.shodan-load:hover,
.censys-load:hover,
.silentpush-load:hover,
.driftnet-load:hover,
.pulsedive-load:hover {
    background: rgba(255, 204, 0, 0.18) !important;
    border-color: rgba(255, 204, 0, 0.7) !important;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.15);
}

.results-container { flex: 1; display: flex; flex-direction: column; gap: 14px; }

/* YARA Sample Scanner results: gap between the file card and matches. */
#yara-scan-results { display: flex; flex-direction: column; gap: 14px; }
.result-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
    scroll-margin-top: 18px;
}

.result-entry-header {
    background: rgba(18, 23, 31, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.result-entry-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-entry-type {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.result-entry-title {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.94rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.result-entry-status {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.result-entry-status[data-state="findings"] {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.34);
    color: #22c55e;
}

.result-entry-status[data-state="processing"] {
    background: rgba(255, 204, 0, 0.14);
    border-color: rgba(255, 204, 0, 0.36);
    color: var(--accent);
}

.result-entry-status[data-state="no-findings"] {
    background: rgba(148, 163, 184, 0.1);
}

.result-entry-status[data-state="error"] {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.34);
    color: var(--danger);
}

.result-source-tabs {
    background: rgba(10, 14, 20, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.result-source-tabs .result-source-tab {
    width: auto;
    max-width: 220px;
    min-height: 34px;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px;
    color: var(--text-muted); gap: 14px; font-weight: 600;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.015);
}
.empty-state i { font-size: 2.8rem; opacity: 0.55; color: var(--accent); }

.intel-card {
    background: linear-gradient(180deg, rgba(18, 23, 31, 0.86), rgba(14, 18, 25, 0.84));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    margin-bottom: 0;
}
.intel-card h3 {
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}
.intel-card-body {
    min-width: 0;
}
.provider-ai-card-panel {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.provider-ai-note {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 204, 0, 0.18);
    border-radius: 8px;
    background: rgba(255, 204, 0, 0.045);
}
.provider-ai-note h4 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px 0;
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0;
}
.provider-ai-text {
    color: var(--text-main);
    font-size: 0.83rem;
    line-height: 1.55;
}
.provider-ai-text h5,
.provider-ai-text h6 {
    margin: 10px 0 5px 0;
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}
.provider-ai-text h5:first-child,
.provider-ai-text h6:first-child {
    margin-top: 0;
}
.provider-ai-text p {
    margin: 0 0 7px 0;
}
.provider-ai-text ul,
.provider-ai-text ol {
    margin: 4px 0 8px 18px;
    padding: 0;
}
.provider-ai-text li {
    margin: 3px 0;
}
.provider-ai-text code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1px 4px;
}
.provider-ai-updated {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.json-view {
    background: rgba(0,0,0,0.3); padding: 16px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.82rem;
    overflow-x: auto; white-space: pre-wrap; color: var(--text-muted); line-height: 1.5; border: 1px solid rgba(255,255,255,0.03);
}
.json-key { color: #a3e635; }
.json-string { color: #facc15; }
.json-number { color: #60a5fa; }
.json-boolean { color: #f87171; }
.json-null { color: #9ca3af; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-content { background: #0f1219; border: 1px solid var(--border); border-radius: 12px; width: 1000px; max-width: 95vw; box-shadow: 0 10px 40px rgba(0,0,0,0.6); display: flex; flex-direction: column; max-height: 85vh; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-body { padding: 24px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; background: rgba(0,0,0,0.2); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; flex-shrink: 0; }

.settings-page {
    padding: 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-section {
    margin-bottom: 22px;
    padding: 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 8px;
}


/* ==========================================================================
   SETTINGS - API KEYS (CLEAN MINIMAL REDESIGN / IOC SEARCH STYLE)
   ========================================================================== */

/* Free / Built-in Sources Card */
.settings-free-card {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.free-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.free-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.free-card-title i {
    font-size: 1.35rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.4));
}

.free-card-title h4 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.free-card-title p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.free-card-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.free-sources-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.free-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.2s ease;
    user-select: none;
}

.free-source-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(250, 204, 21, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.free-source-pill i {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.85;
}

/* Section Header */
.api-section-header {
    margin: 24px 0 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.api-key-transfer-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.api-section-titles h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.api-section-titles p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Filter Toolbar (IOC Search Style) */
.api-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.api-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    display: flex;
    align-items: center;
}

.api-search-icon {
    position: absolute;
    left: 12px;
    font-size: 0.82rem;
    color: var(--accent);
    pointer-events: none;
}

.api-search-wrapper input {
    width: 100%;
    padding: 8px 32px 8px 34px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
}

.api-search-wrapper input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.18) !important;
    outline: none !important;
}

.api-search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.api-search-clear-btn:hover {
    color: #f8fafc;
}

.api-filter-pills {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.api-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    box-shadow: none;
    color: #8ba2b8;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    cursor: pointer;
    transition: all 0.16s ease;
    user-select: none;
}

.api-filter-pill:hover {
    background: var(--bg-hover, rgba(38, 45, 58, 0.6));
    color: var(--text-main);
}

.api-filter-pill.active {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.2);
    box-shadow: none;
}

.api-filter-pill .filter-count {
    min-width: 18px;
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #8ba2b8;
    line-height: 17px;
    transition: all 0.16s ease;
}

.api-filter-pill:hover .filter-count {
    color: var(--text-main);
}

.api-filter-pill.active .filter-count {
    background: rgba(255, 204, 0, 0.13);
    color: var(--accent);
}

/* Grid & Cards */
.api-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.api-key-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 142px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.api-key-card:hover {
    background: rgba(20, 29, 50, 0.65);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.api-key-card.has-key {
    background: rgba(250, 204, 21, 0.025);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.04), inset 3px 0 0 var(--accent);
}

.api-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.api-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.api-card-status-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.2s ease;
}

.api-key-card.has-key .api-card-status-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.api-card-title label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.api-key-card.has-key .api-card-title label {
    color: #ffffff;
}

.api-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.api-doc-link:hover {
    color: var(--accent);
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(250, 204, 21, 0.08);
}

.api-doc-link i {
    font-size: 0.65rem;
}

/* Input & Eye Toggle */
.api-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.api-key-card .api-input-wrapper input {
    width: 100%;
    padding: 8px 42px 8px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.api-input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
    outline: none;
}

.api-key-card.has-key .api-input-wrapper input {
    border-color: rgba(250, 204, 21, 0.25);
    background: rgba(0, 0, 0, 0.5);
}

.btn-toggle-key-mask {
    position: absolute;
    right: 5px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 26px;
    padding: 0;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.btn-toggle-key-mask:hover,
.btn-toggle-key-mask:focus-visible {
    color: var(--accent);
}

/* Caps Badges - Minimal, Monochromatic & Eye-Friendly */
.api-caps-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.api-cap-badge {
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #64748b;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.api-key-card:hover .api-cap-badge {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.api-key-card.has-key .api-cap-badge {
    color: #cbd5e1;
    background: rgba(250, 204, 21, 0.04);
    border-color: rgba(250, 204, 21, 0.15);
}

/* MISP Instance Dedicated Card (Full Width at Bottom) */
.misp-instance-card {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(20, 29, 50, 0.6));
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.misp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.misp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.misp-icon-box {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 1rem;
}

.misp-title-group {
    display: flex;
    flex-direction: column;
}

.misp-main-title {
    margin: 0;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px;
}

.misp-sub-title {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.misp-grid-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 14px;
}

.misp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.misp-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.misp-field-label i {
    color: var(--accent);
}

.misp-field input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.misp-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
    outline: none;
}

.misp-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.misp-ssl-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.misp-ssl-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Save Action Bar */
.api-save-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.api-save-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.api-save-note i {
    color: var(--accent);
    font-size: 1.1rem;
}

.api-save-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.api-save-feedback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 700;
}

.api-info-link { color: var(--accent); opacity: 0.6; margin-left: 6px; font-size: 0.9em; text-decoration: none; transition: all 0.2s; }
.api-info-link:hover { opacity: 1; filter: drop-shadow(0 0 3px var(--accent)); }

/* ==========================================================================
   SETTINGS - THREAT FEEDS (CLEAN MINIMAL REDESIGN / IOC SEARCH STYLE)
   ========================================================================== */

.feeds-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.feeds-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 380px;
    display: flex;
    align-items: center;
}

.feeds-search-icon {
    position: absolute;
    left: 12px;
    font-size: 0.82rem;
    color: var(--accent);
    pointer-events: none;
}

.feeds-search-wrapper input {
    width: 100%;
    padding: 8px 32px 8px 34px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-family: var(--font-ui) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.feeds-search-wrapper input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.18) !important;
    outline: none !important;
}

.feeds-search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.feeds-search-clear-btn:hover {
    color: #f8fafc;
}

.feeds-filter-pills {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.feeds-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.feeds-table-container {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.feeds-table-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.feeds-count-summary {
    color: #cbd5e1;
    font-weight: 500;
}

.feeds-sync-hint {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.feeds-sync-hint i {
    color: var(--accent);
    opacity: 0.75;
}

.feed-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.feeds-modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-ui);
    font-size: 0.82rem;
}

.feeds-modern-table thead tr {
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feeds-modern-table th {
    padding: 12px 18px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.feeds-modern-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    transition: background 0.15s ease;
}

.feeds-modern-table tbody tr:last-child {
    border-bottom: none;
}

.feeds-modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.feeds-modern-table td {
    padding: 12px 18px;
    vertical-align: middle;
}

.feed-provider-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-provider-name {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.84rem;
}

.feed-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 14px;
}

.feed-badge-builtin {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.22);
    color: var(--accent);
}

.feed-badge-dynamic {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.feed-desc-cell {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 340px;
}

.feed-url-cell a {
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.feed-url-cell a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.feed-records-cell {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.form-group:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.form-group.has-key {
    background: rgba(255, 204, 0, 0.045);
    border-color: rgba(255, 204, 0, 0.22);
    box-shadow: inset 3px 0 0 rgba(255, 204, 0, 0.38);
}
#github-repos-box.has-key {
    background: rgba(255, 204, 0, 0.035);
    border-color: rgba(255, 204, 0, 0.20);
    box-shadow: inset 3px 0 0 rgba(255, 204, 0, 0.32);
}
.form-group.has-key label { color: var(--text-main); }
.form-group.has-key input { border-color: rgba(255, 204, 0, 0.28); }
.form-group label {
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}
.form-group input {
    width: 100%;
    min-width: 0;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
    padding: 9px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    outline: none;
    transition: all 0.2s;
    box-shadow: none;
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25), inset 0 2px 4px rgba(0,0,0,0.2); }
.server-key-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(15, 23, 42, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
    color: #b7c4d8;
    font-size: 0.8rem;
    line-height: 1.45;
}

.server-key-note i {
    color: var(--accent);
    opacity: 0.85;
    margin-top: 2px;
}

.server-key-note.optional {
    background: rgba(255, 204, 0, 0.06);
    border-color: rgba(255, 204, 0, 0.18);
}

.server-key-note code {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    padding: 1px 5px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.setting-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

.setting-meta i {
    opacity: 0.55;
}

.setting-meta span {
    color: var(--accent);
}

#settings-view .form-group > div[style] {
    margin-top: 0 !important;
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

#settings-view .form-group > div[style] span {
    color: var(--accent) !important;
}

#settings-view .form-group > div[style] i {
    opacity: 0.5 !important;
    margin-right: 4px !important;
}

#settings-view #btn-save-settings {
    min-width: 118px;
    justify-content: center;
}

#settings-view #github-repos-box {
    margin-top: 28px !important;
    border-radius: 8px !important;
    padding: 18px !important;
}

@media (max-width: 1600px) {
    .api-keys-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1160px) {
    .api-keys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
    .settings-page { padding: 16px; }
    .api-keys-grid { grid-template-columns: 1fr; }
}
.btn-close-circle {
    background: rgba(255,255,255,0.05); border: none; color: var(--text-muted); width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-close-circle:hover { background: var(--danger); color: white; transform: rotate(90deg); }

.spinner {
    animation: spin 1s linear infinite; margin-right: 8px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Loading indicator rotation. Self-hosted instead of Font Awesome's
   fa-spin so the spinner rotates regardless of icon-font animation state.
   Same icon design/size/color/position; only the rotation is local. */
.mantis-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.error-card {
    background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px;
    padding: 16px; color: #ef4444; display: flex; align-items: center; gap: 12px; font-weight: 500;
}

/* Intel Rendering Specific Styles */
.hash-intel-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 14px;
    background: rgba(15, 23, 42, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    text-align: center;
}

.hash-intel-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hash-intel-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 0.75rem;
    word-break: break-all;
}

.vt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.78rem;
}

.vt-table th,
.vt-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 7px 9px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vt-table th {
    color: var(--text-main);
    font-weight: 800;
    background: rgba(255,255,255,0.025);
}

.vt-table td {
    color: var(--text-main);
}

.vt-table td a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 204, 0, 0.48);
}

.vt-engine-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-size: 0.75rem;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.vt-parent-list {
    display: grid;
    gap: 10px;
}

.vt-parent-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    overflow: hidden;
}

.vt-parent-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.vt-parent-title {
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.vt-parent-hash {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.vt-parent-open {
    align-items: center;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.22);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 850;
    gap: 5px;
    padding: 5px 8px;
    text-decoration: none;
}

.vt-parent-meta,
.vt-parent-archive,
.vt-parent-tags,
.vt-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.vt-parent-meta span,
.vt-parent-archive span,
.vt-parent-tags span,
.vt-stat-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 0.7rem;
    gap: 5px;
    padding: 4px 8px;
}

.vt-stat-pill b,
.vt-parent-archive b {
    color: var(--text-main);
}

.vt-stat-pill.danger {
    background: rgba(255, 71, 87, 0.09);
    border-color: rgba(255, 71, 87, 0.24);
    color: #ff8fa0;
}

.vt-stat-pill.warning {
    background: rgba(245, 158, 11, 0.09);
    border-color: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

.vt-stat-pill.good {
    background: rgba(46, 213, 115, 0.08);
    border-color: rgba(46, 213, 115, 0.2);
    color: #7bed9f;
}

.vt-parent-detections {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
    padding-top: 8px;
}

.vt-parent-detections summary {
    color: var(--accent);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
}

.vt-parent-detections div {
    display: grid;
    gap: 4px;
    margin-top: 7px;
}

.vt-parent-detections span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.vt-comment-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.vt-comment-date {
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-comment-text {
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
    white-space: pre-wrap;
}

.mb-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    font-size: 0.8rem;
}

.provider-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-note {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #9db0c8;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.provider-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-card-list.compact {
    gap: 8px;
}

.provider-result-card {
    background: rgba(3, 7, 18, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 7px;
    padding: 11px 12px;
    min-width: 0;
}

.provider-result-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.provider-result-card summary::-webkit-details-marker {
    display: none;
}

.provider-result-card summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: transform 0.16s ease;
}

.provider-result-card[open] summary::after {
    transform: rotate(180deg);
}

.provider-title {
    min-width: 0;
    color: var(--text-main);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.provider-pill {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--accent);
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 800;
}

.provider-code {
    margin: 10px 0 0;
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 6px;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    line-height: 1.48;
}

.yara-rule-result > summary {
    justify-content: flex-start;
}
.yara-rule-result > summary .provider-title {
    flex: 1;
}
.yara-rule-result > summary::after {
    flex: none;
}
.yara-rule-result > .provider-code {
    max-height: clamp(420px, 70vh, 800px);
    font-size: 0.82rem;
    line-height: 1.55;
}

.infra-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 7px;
    padding: 12px;
    overflow: hidden;
}

.infra-panel h4 {
    margin: 0 0 10px 0;
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0;
}

.infra-observation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.infra-observation-card {
    min-width: 0;
    background: rgba(3, 7, 18, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-left: 3px solid rgba(255, 204, 0, 0.55);
    border-radius: 7px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.infra-observation-card.compact {
    gap: 6px;
}

.infra-observation-head {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.infra-observation-title {
    min-width: 0;
    color: var(--text-main);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.infra-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.infra-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: #cbd5e1;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.infra-chip.muted {
    color: var(--text-muted);
}

.infra-kv {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    font-size: 0.76rem;
}

.infra-kv span {
    color: var(--text-muted);
}

.infra-kv strong {
    min-width: 0;
    color: var(--text-main);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.infra-panel a,
.infra-observation-card a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 204, 0, 0.55);
}

.mono {
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.dark-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.dark-scroll::-webkit-scrollbar-track {
    background: rgba(6, 10, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 999px;
}
.dark-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.48), rgba(0, 177, 160, 0.28));
    border: 2px solid rgba(6, 10, 18, 0.9);
    border-radius: 999px;
}
.dark-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.78), rgba(0, 177, 160, 0.5));
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .2s;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: .2s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(255, 204, 0, 0.3);
    border-color: var(--accent);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(16px);
    background-color: var(--accent);
}

.result-source-tab {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font: 600 0.78rem var(--font-ui);
    letter-spacing: 0;
    text-align: left;
    transition: all 0.2s;
}

.result-source-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-source-indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.result-source-indicator[data-state="findings"] {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.result-source-indicator[data-state="processing"] {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.16);
    animation: source-status-pulse 1.2s ease-in-out infinite;
}

.result-source-indicator[data-state="no-findings"] {
    background: var(--text-muted);
    opacity: 0.72;
}

.result-source-indicator[data-state="error"] {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

@keyframes source-status-pulse {
    50% { opacity: 0.45; }
}

.result-source-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent) !important;
}
.result-source-chip.active-sub {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.35);
    color: var(--accent) !important;
    font-weight: 600;
}

.samples-downloader-pane {
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-bottom: 36px;
    font-family: var(--font-ui, sans-serif);
}

/* Hero Section */
.samples-downloader-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 21, 32, 0.85) 0%, rgba(20, 27, 42, 0.65) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.samples-downloader-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent, #ffb800);
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.4);
}

.samples-hero-main {
    flex: 1;
    min-width: 0;
}

.samples-downloader-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent, #ffb800);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.samples-downloader-hero h1 {
    margin: 4px 0 8px;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.samples-downloader-hero p {
    margin: 0;
    color: var(--text-muted, #94a3b8);
    font-size: 0.84rem;
    line-height: 1.5;
    max-width: 680px;
}

.samples-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.samples-vt-key-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    transition: all 0.2s ease;
}

.samples-vt-key-badge.is-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.samples-vt-key-badge.is-missing {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.samples-downloader-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 380px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 184, 0, 0.25);
    border-radius: 8px;
    background: rgba(255, 184, 0, 0.05);
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.samples-downloader-warning > i {
    color: var(--accent, #ffb800);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.samples-downloader-warning strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.samples-downloader-warning p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Main Cards */
.samples-downloader-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(14, 19, 29, 0.75);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.samples-card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.samples-input-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--accent, #ffb800);
    text-transform: uppercase;
}

.samples-hash-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hash-tag-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.batch-limit-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.25);
    color: var(--accent, #ffb800);
}

/* Textarea Codebox */
.samples-textarea-wrapper {
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 11, 18, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.samples-textarea-wrapper:focus-within {
    border-color: rgba(255, 184, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.25), 0 0 16px rgba(255, 184, 0, 0.1);
}

#samples-downloader-hashes {
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
    border: none;
    background: transparent;
    color: #e2e8f0;
    padding: 14px 16px;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.83rem;
    line-height: 1.6;
    outline: none;
    resize: vertical;
}

#samples-downloader-hashes::placeholder {
    color: rgba(148, 163, 184, 0.4);
    font-style: italic;
}

/* Input Summary */
.samples-input-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.samples-downloader-input-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.summary-pill.valid {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.summary-pill.invalid {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.summary-pill.limit {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Options Grid */
.samples-downloader-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 22px;
}

.samples-option-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
}

.samples-downloader-option-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent, #ffb800);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Mode Cards */
.samples-mode-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.samples-mode-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 24, 36, 0.5);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.samples-mode-card:hover {
    border-color: rgba(255, 184, 0, 0.3);
    background: rgba(255, 184, 0, 0.03);
}

.samples-mode-card.active {
    border-color: var(--accent, #ffb800);
    background: rgba(255, 184, 0, 0.07);
}

.samples-mode-card input[type="radio"] {
    accent-color: var(--accent, #ffb800);
    cursor: pointer;
    margin: 0;
}

.mode-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent, #ffb800);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mode-card-content {
    flex: 1;
    min-width: 0;
}

.mode-card-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.mode-card-desc {
    font-size: 0.73rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
}

.mode-card-desc code {
    font-family: var(--font-mono, monospace);
    color: #cbd5e1;
}

.infected-pwd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 0.68rem;
}

/* Folder Picker Box */
.samples-folder-picker-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.samples-folder-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.samples-btn-folder {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.samples-folder-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
    font-family: var(--font-mono, monospace);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.samples-folder-status-indicator i {
    color: var(--accent, #ffb800);
}

.samples-folder-status-indicator span.is-configured {
    color: #4ade80;
    font-weight: 600;
}

.samples-folder-note {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Execution Actions Bar */
.samples-downloader-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.samples-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.samples-download-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 184, 0, 0.2);
}

.samples-download-cta:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.35);
    transform: translateY(-1px);
}

.samples-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: 0.82rem;
}

.samples-progress-indicator {
    font-size: 0.8rem;
    color: var(--accent, #ffb800);
    font-family: var(--font-mono, monospace);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Results Card */
.samples-downloader-results {
    margin-top: 0;
}

.samples-downloader-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 14px;
}

.samples-results-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.samples-results-title-group h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.samples-counts-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.samples-count-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
}

.samples-count-item.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.samples-count-item.failed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.samples-count-item.pending {
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.25);
    color: #ffb800;
}

.samples-downloader-results-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.samples-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    padding: 6px 12px;
    font-weight: 600;
}

/* Results Table */
.samples-downloader-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(10, 14, 22, 0.5);
}

.samples-downloader-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.samples-downloader-table-wrap th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
}

.samples-downloader-table-wrap td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 11px 16px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.samples-downloader-table-wrap tr:hover td {
    background: rgba(255, 184, 0, 0.02);
}

.samples-hash-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.samples-hash-cell code {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.samples-row-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.samples-row-copy:hover {
    color: var(--accent, #ffb800);
    border-color: rgba(255, 184, 0, 0.3);
    background: rgba(255, 184, 0, 0.1);
}

.samples-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.samples-type-badge.md5 {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}

.samples-type-badge.sha1 {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}

.samples-type-badge.sha256 {
    background: rgba(255, 184, 0, 0.1);
    color: #ffb800;
    border-color: rgba(255, 184, 0, 0.25);
}

.samples-download-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted, #94a3b8);
}

.samples-download-status[data-state="processing"] {
    background: rgba(255, 184, 0, 0.15);
    color: var(--accent, #ffb800);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.samples-download-status[data-state="success"] {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.samples-download-status[data-state="failed"] {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.samples-download-status[data-state="queued"] {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.samples-detail-text {
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.4;
}

.samples-empty-placeholder {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted, #94a3b8);
}

.samples-empty-placeholder i {
    font-size: 2.2rem;
    opacity: 0.35;
    margin-bottom: 10px;
    color: var(--accent, #ffb800);
}

.samples-empty-placeholder .empty-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.samples-empty-placeholder .empty-desc {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .samples-downloader-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .samples-hero-aside {
        align-items: flex-start;
        width: 100%;
    }
    .samples-downloader-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 14px;
    }

    .content-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-box-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }

    .search-box-actions button {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }


    .source-selector-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* -----------------------------------------
   RANSOMWARE DASHBOARD STYLES
   ----------------------------------------- */
.dash-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dash-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.dash-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.dash-stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.dash-card {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dash-card:hover {
    background: rgba(20, 25, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.dash-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.dash-card-flag {
    font-size: 1.2rem;
}

.dash-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    align-items: center;
}

.dash-tag-group {
    background: rgba(255, 87, 87, 0.15);
    color: var(--danger);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(255, 87, 87, 0.3);
}

.dash-tag-date {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   YARA SAMPLE SCANNER PREMIUM REDESIGN
   ========================================================================== */
.yara-scanner-scroll-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Command Hero Header */
.yara-scan-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.9) 0%, rgba(13, 16, 23, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.yara-scan-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.yara-scan-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.yara-scan-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
}

.yara-scan-hero-copy h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    font-family: var(--font-header, inherit);
}

.yara-scan-hero-copy p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.yara-scan-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.yara-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.yara-hero-pill strong {
    color: #fff;
    font-weight: 700;
}

.yara-hero-pill.ready {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.yara-hero-pill.secure {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* 2-Card Configuration Grid */
.yara-scan-main-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 22px;
}

@media (max-width: 1024px) {
    .yara-scan-main-grid {
        grid-template-columns: 1fr;
    }
    .yara-scan-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.yara-scan-card {
    background: rgba(18, 22, 31, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
}

.yara-scan-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 14px;
}

.yara-scan-card-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.yara-scan-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    flex-shrink: 0;
}

.yara-scan-card-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.yara-scan-card-title p {
    margin: 3px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.yara-scan-card-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Premium Dropzone */
.yara-dropzone-premium {
    flex: 1;
    min-height: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(255, 204, 0, 0.02) 0%, rgba(10, 12, 18, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.yara-dropzone-premium:hover {
    border-color: rgba(255, 204, 0, 0.35);
    background: radial-gradient(circle at center, rgba(255, 204, 0, 0.05) 0%, rgba(10, 12, 18, 0.5) 100%);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.08);
}

.yara-dropzone-premium.dragover {
    border-color: var(--accent);
    background: rgba(255, 204, 0, 0.08);
    box-shadow: 0 0 35px rgba(255, 204, 0, 0.25);
    transform: scale(0.995);
}

.yara-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 420px;
}

.yara-dropzone-icon-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.yara-dropzone-premium:hover .yara-dropzone-icon-ring {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.yara-dropzone-prompt strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.yara-dropzone-prompt span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.yara-browse-btn {
    cursor: pointer;
    font-size: 0.85rem;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.25);
}

/* Staged Sample Card */
.yara-staged-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05) 0%, rgba(20, 24, 34, 0.7) 100%);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.yara-staged-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.yara-staged-info {
    flex: 1;
    min-width: 0;
}

.yara-staged-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
    font-family: var(--font-mono, monospace);
}

.yara-staged-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.yara-staged-pill {
    font-size: 0.76rem;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 600;
}

.yara-staged-pill.size {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
}

.yara-staged-pill.status {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.yara-staged-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.yara-sm-btn {
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yara-clear-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

/* Repositories Selector */
.yara-repos-batch-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.yara-repos-batch-links .btn-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.yara-repos-batch-links .btn-link:hover {
    color: var(--accent);
}

.yara-repos-divider {
    color: rgba(255, 255, 255, 0.2);
}

.yara-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.yara-repo-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.yara-repo-tile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.yara-repo-tile.is-checked {
    background: rgba(255, 204, 0, 0.06);
    border-color: rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.06);
}

.yara-repo-checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.yara-repo-tile.is-checked .yara-repo-checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.yara-repo-info {
    flex: 1;
    min-width: 0;
}

.yara-repo-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yara-repo-rules-badge {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
    margin-top: 2px;
}

/* Command Action Bar */
.yara-scan-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 24, 34, 0.8) 0%, rgba(14, 17, 24, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.yara-scan-action-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yara-scan-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4);
    transition: all 0.3s ease;
}

.yara-scan-pulse-dot.active {
    background: var(--accent);
    animation: yara-pulse-glow 1.8s infinite;
}

@keyframes yara-pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.yara-scan-action-info strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.yara-scan-action-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.yara-scan-cta {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 204, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.yara-scan-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* Scanning Radar Progress Card */
.yara-scanning-state-card {
    padding: 45px 24px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 204, 0, 0.05) 0%, rgba(14, 18, 26, 0.85) 100%);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

.yara-scanning-radar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.08);
    border: 2px solid rgba(255, 204, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
}

.yara-scanning-radar-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 204, 0, 0.4);
    animation: fa-spin 8s linear infinite;
}

.yara-scanning-state-card h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.yara-scanning-state-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Verdict Banners */
.yara-verdict-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 26px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.3s ease;
}

.yara-verdict-card.threat {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(20, 14, 18, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.yara-verdict-card.threat .yara-verdict-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.yara-verdict-card.threat h3 {
    color: #ef4444;
}

.yara-verdict-card.clean {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 20, 18, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.yara-verdict-card.clean .yara-verdict-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.yara-verdict-card.clean h3 {
    color: #10b981;
}

.yara-verdict-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yara-verdict-left h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.yara-verdict-left p {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.yara-verdict-badge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.yara-verdict-card.threat .yara-verdict-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.yara-verdict-card.clean .yara-verdict-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

/* Sample Analysis Details & Matrix */
.yara-details-card {
    background: rgba(18, 22, 31, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.yara-details-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.yara-details-filename {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono, monospace);
    word-break: break-all;
}

.yara-details-meta-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.yara-meta-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.yara-meta-pill strong {
    color: #fff;
}

/* Stat Grid */
.yara-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.yara-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
}

.yara-stat-box .label {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.yara-stat-box .val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-header, inherit);
}

.yara-stat-box .val.matched-danger {
    color: #ef4444;
}

.yara-stat-box .val.matched-clean {
    color: #10b981;
}

/* Fingerprint Hashes */
.yara-hashes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
}

.yara-hash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
}

.yara-hash-type {
    width: 65px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.yara-hash-val {
    color: var(--text-main);
    flex: 1;
    word-break: break-all;
}

/* Repos breakdown */
.yara-results-repos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yara-results-repos-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yara-results-repos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yara-repo-result-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.yara-repo-result-chip.has-matches {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

.yara-repo-result-chip.has-matches strong {
    color: #ef4444;
}

/* Matched Rule Premium Card */
.yara-match-card-premium {
    background: rgba(18, 22, 31, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.yara-match-card-premium:hover {
    border-color: rgba(255, 255, 255, 0.15);
    border-left-color: #ef4444;
    transform: translateY(-2px);
}

.yara-match-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.yara-match-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.yara-match-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff6b6b;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.yara-match-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono, monospace);
    word-break: break-all;
}

.yara-match-source-badge {
    font-size: 0.76rem;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
}

.yara-match-desc {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 2px solid var(--accent);
}

.yara-match-stats-row {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.yara-match-stats-row strong {
    color: #fff;
}

.yara-match-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yara-match-chip {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.25);
    color: var(--accent);
}

.yara-match-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.yara-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yara-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.yara-matches-collapsible {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 14px;
    margin-top: 6px;
}

.yara-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.yara-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(255, 204, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.yara-scan-pulse {
    display: inline-block;
    animation: fa-spin 1.2s linear infinite;
    color: var(--accent);
    margin-right: 8px;
}

@keyframes yara-pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hash-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 6px;
    transition: color 0.2s;
}

.hash-copy-btn:hover {
    color: var(--accent);
}

/* ==========================================================================
   YARA RULE EXPLORER PREMIUM REDESIGN
   ========================================================================== */
.yara-exp-scroll-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Command Hero */
.yara-exp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.9) 0%, rgba(13, 16, 23, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.yara-exp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.yara-exp-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.yara-exp-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
}

.yara-exp-hero-copy h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    font-family: var(--font-header, inherit);
}

.yara-exp-hero-copy p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.yara-exp-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Repositories Filter Strip Card */
.yara-exp-filter-card {
    background: rgba(18, 22, 31, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.yara-exp-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.yara-exp-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.yara-exp-batch-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yara-exp-batch-links .btn-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.yara-exp-batch-links .btn-link:hover {
    color: var(--accent);
}

.yara-exp-repos-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yara-exp-repo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.yara-exp-repo-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.yara-exp-repo-pill.is-checked {
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.35);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.08);
}

.yara-exp-repo-pill .repo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Toolbar */
.yara-exp-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.yara-exp-search-box {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    background: rgba(14, 18, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yara-exp-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.18);
}

.yara-exp-search-box .yara-search-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.yara-exp-search-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.yara-exp-search-box input::placeholder {
    color: #64748b;
}

.yara-exp-clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.yara-exp-clear-search-btn:hover {
    color: #fff;
}

.yara-exp-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yara-exp-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.yara-exp-toggle-btn.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.4);
    color: var(--accent);
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.15);
}

.yara-exp-status-segmented {
    display: inline-flex;
    background: rgba(14, 18, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.yara-exp-status-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yara-exp-status-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.yara-exp-status-tab.active {
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.35);
    color: var(--accent);
    font-weight: 700;
}

.yara-exp-counter-box {
    margin-left: auto;
    text-align: right;
    padding: 4px 12px;
}

.yara-exp-counter-box .count-num {
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-header, inherit);
    line-height: 1.1;
}

.yara-exp-counter-box .count-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Rules Grid & Cards */
.yara-exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    align-content: start;
}

.yara-rule-card-premium {
    background: rgba(18, 22, 31, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.yara-rule-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: all 0.2s ease;
}

.yara-rule-card-premium.invalid::before {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.yara-rule-card-premium:hover {
    transform: translateY(-2px);
    background: rgba(24, 30, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.yara-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.yara-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono, monospace);
    word-break: break-all;
    line-height: 1.35;
}

.yara-card-status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.yara-card-status-badge.valid {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.yara-card-status-badge.invalid {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.yara-card-error-preview {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fca5a5;
    font-size: 0.74rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.yara-card-error-preview i {
    color: #ef4444;
    margin-top: 2px;
    flex-shrink: 0;
}

.yara-card-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.76rem;
}

.yara-card-repo-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 600;
}

.yara-card-col-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.2);
    color: var(--accent);
}

.yara-card-file {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yara-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 2px solid rgba(255, 204, 0, 0.4);
}

.yara-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.yara-card-tag-pill {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
}

.yara-card-match-highlight {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 204, 0, 0.06);
    padding: 4px 8px;
    border-radius: 4px;
}

.yara-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: auto;
}

.yara-card-strings {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono, monospace);
}

.yara-card-cta {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.yara-rule-card-premium:hover .yara-card-cta {
    transform: translateX(3px);
}

/* ==========================================================================
   YARA RULE DETAIL MODAL (THREAT ACTOR STYLE PREMIUM)
   ========================================================================== */
.yara-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.yara-modal-container {
    background: linear-gradient(135deg, rgba(14, 18, 27, 0.98) 0%, rgba(9, 12, 18, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 1050px;
    max-width: 95vw;
    max-height: 92vh;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    position: relative;
}

.yara-modal-container.yara-modal-wide {
    width: 1420px;
    max-width: 96vw;
    height: 90vh;
    max-height: 92vh;
}

.yara-modal-topbar {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 9, 15, 0.65);
    flex-shrink: 0;
}

.yara-modal-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.yara-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.yara-modal-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Split Workstation Layout */
.yara-modal-split-body {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
    padding: 18px 24px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .yara-modal-split-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

/* Left Column: Compact Specifications */
.yara-modal-left-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 8px;
    min-height: 0;
}

.yara-modal-title-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yara-modal-title-eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.yara-modal-left-col .yara-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f1f5f9;
    font-family: var(--font-header, inherit);
    word-break: break-all;
    line-height: 1.3;
}

.yara-modal-meta-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.yara-modal-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.yara-modal-meta-pill strong {
    color: #fff;
}

.yara-modal-meta-pill.valid {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.yara-modal-meta-pill.invalid {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Compact 2x2 Summary Grid */
.yara-modal-left-col .yara-modal-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-bottom: 0;
    border-bottom: none;
}

.yara-modal-left-col .yara-modal-summary-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yara-modal-left-col .yara-modal-summary-label {
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.yara-modal-left-col .yara-modal-summary-val {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.82rem;
    word-break: break-all;
}

/* Section Header (Compact) */
.yara-modal-sec-header {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    color: #94a3b8;
}

.yara-modal-desc-box {
    color: var(--text-main);
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid #3b82f6;
}

/* Metadata Grid (Compact Single Column on Left) */
.yara-modal-left-col .yara-modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.yara-modal-left-col .yara-modal-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    font-size: 0.74rem;
    gap: 8px;
}

.yara-modal-left-col .yara-modal-meta-row .meta-k {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.yara-modal-left-col .yara-modal-meta-row .meta-v {
    color: #cbd5e1;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    word-break: break-all;
    text-align: right;
    font-size: 0.74rem;
}

/* Tags Wrap */
.yara-modal-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yara-modal-tag-chip {
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
}

.yara-modal-errors-box {
    margin-bottom: 4px;
}

/* Right Column: Dominant Source Code Editor */
.yara-modal-right-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.yara-modal-source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.yara-code-act-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.yara-code-act-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.yara-editor-frame {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.yara-modal-editor-wrap {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.yara-modal-gutter {
    flex: 0 0 54px;
    width: 54px;
    background: #05080f;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 12px 18px 0;
    text-align: right;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #475569;
    user-select: none;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: pre;
    box-sizing: border-box;
}

.yara-modal-gutter::-webkit-scrollbar {
    display: none;
}

.yara-modal-code-stack {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    display: flex;
}

.yara-modal-source-pre {
    background: transparent;
    padding: 18px 20px;
    border-radius: 0;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    overflow: auto;
    white-space: pre;
    color: #e2e8f0;
    border: none;
    flex: 1;
    min-height: 0;
    max-height: none;
    height: 100%;
    box-shadow: none;
    box-sizing: border-box;
    margin: 0;
}

.yara-modal-source-editor {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    max-height: none;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #f8fafc;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    padding: 18px 20px;
    resize: none;
    box-shadow: none;
    box-sizing: border-box;
    white-space: pre;
}

.yara-modal-source-editor:focus {
    outline: none;
    box-shadow: none;
}

/* AI Fix Button styling */
.yara-ai-fix-btn {
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    color: #d8b4fe !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.yara-ai-fix-btn:hover {
    background: rgba(168, 85, 247, 0.25) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35) !important;
    transform: translateY(-1px);
}

.yara-alert-ai-fix-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    transition: all 0.15s ease;
}

.yara-alert-ai-fix-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* Modal Footer */
.yara-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 9, 15, 0.65);
    font-size: 0.78rem;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.yara-modal-footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
}

.yara-modal-footer-meta strong {
    color: #cbd5e1;
}

.yara-modal-footer-actions {
    display: flex;
    gap: 10px;
}

.yara-modal-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* View & Edit Rule Switcher - Clean Frosted Minimal UI (No clashing blue with yellow) */
.yara-modal-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.yara-modal-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.yara-modal-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.yara-modal-tab.active {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.yara-modal-tab.active i {
    color: #38bdf8;
}

/* Delete Rule Button - High-contrast crisp white typography with bold crimson styling (No washed-out light red) */
.yara-btn-danger-solid {
    background: rgba(220, 38, 38, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.55) !important;
    color: #ffffff !important;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.yara-btn-danger-solid i {
    color: #ef4444 !important;
    font-size: 0.88rem;
}

.yara-btn-danger-solid:hover {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
}

.yara-btn-danger-solid:hover i {
    color: #ffffff !important;
}

/* Save Changes Button */
.yara-btn-primary-solid {
    background: #059669;
    border: 1px solid #10b981;
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.yara-btn-primary-solid:hover {
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Create Rule Button in YARA Explorer - Crisp Cyber Emerald (No blue with yellow clash) */
.yara-exp-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yara-exp-create-btn i {
    color: #10b981;
    transition: transform 0.2s ease;
}

.yara-exp-create-btn:hover {
    background: #059669;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.yara-exp-create-btn:hover i {
    color: #ffffff;
    transform: rotate(90deg);
}

/* -----------------------------------------
   RANSOMWARE MONITOR
   ----------------------------------------- */
.ransom-monitor-pane {
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 2px 26px;
    color: var(--text-main);
}

.ransom-monitor-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
}

.ransom-monitor-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.ransom-monitor-tab {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
}

.ransom-monitor-tab.active {
    color: var(--accent);
    border-color: rgba(255, 204, 0, 0.55);
    background: rgba(255, 204, 0, 0.08);
}

.ransom-monitor-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ransom-monitor-actions select,
.ransom-filters input,
.ransom-filters select,
.ransom-watch-form select,
.ransom-watch-form input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    min-height: 34px;
}

.ransom-monitor-status {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 24px;
}

.ransom-source,
.ransom-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 700;
}

.ransom-source.ok {
    color: #8dd7ad;
    border-color: rgba(141,215,173,0.28);
    background: rgba(141,215,173,0.08);
}

.ransom-source.warn {
    color: #f8c471;
    border-color: rgba(248,196,113,0.28);
    background: rgba(248,196,113,0.08);
}

.ransom-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.ransom-workflow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255, 204, 0, 0.18);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08), rgba(255,255,255,0.025));
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.ransom-workflow > div:first-child > span {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ransom-workflow h3 {
    margin: 5px 0;
    font-size: 1.05rem;
}

.ransom-workflow p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ransom-workflow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ransom-workflow-steps span,
.ransom-source-row .ransom-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ransom-workflow-steps span {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.ransom-workflow-steps b,
.ransom-source-row b {
    color: var(--accent);
}

.ransom-analyst-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.45fr);
    gap: 12px;
    margin-bottom: 12px;
}

.ransom-coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}

.ransom-coverage-item,
.ransom-source-row {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
}

.ransom-coverage-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    align-items: center;
    padding: 11px;
}

.ransom-coverage-item i {
    grid-row: span 2;
    color: var(--accent);
}

.ransom-coverage-item strong {
    font-size: 1.05rem;
    line-height: 1;
}

.ransom-coverage-item span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ransom-source-row {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 6px;
    padding: 10px;
}

.ransom-metric,
.ransom-panel,
.ransom-profile-head {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
}

.ransom-metric {
    padding: 13px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: center;
}

button.ransom-metric {
    width: 100%;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ransom-metric-clickable {
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ransom-metric-clickable:hover,
.ransom-metric-clickable:focus-visible {
    border-color: rgba(255, 204, 0, 0.45);
    background: rgba(255, 204, 0, 0.055);
    transform: translateY(-1px);
    outline: none;
}

.ransom-metric i {
    color: var(--accent);
    grid-row: span 2;
}

.ransom-metric strong {
    font-size: 1.35rem;
    line-height: 1;
}

.ransom-metric span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ransom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.ransom-panel {
    padding: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ransom-panel h3 {
    margin: 0 0 10px;
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.ransom-panel h3 small {
    color: var(--text-muted);
    font-weight: 600;
}

.ransom-timeline-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
    scrollbar-width: thin;
    padding: 8px;
}

.ransom-timeline {
    height: 92px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.ransom-timeline button {
    flex: 1 0 4px;
    background: linear-gradient(180deg, var(--accent), rgba(255,255,255,0.18));
    border-radius: 2px 2px 0 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.ransom-timeline button:hover,
.ransom-bar-row:hover b {
    filter: brightness(1.18);
}

.ransom-timeline button:hover {
    transform: translateY(-2px);
}

.ransom-chart-note,
.ransom-timeline-axis {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.ransom-chart-note {
    margin-bottom: 7px;
}

.ransom-timeline-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-bottom: 2px;
}

.ransom-timeline-victims {
    display: grid;
    gap: 8px;
}

.ransom-timeline-victim {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
    padding: 10px;
}

.ransom-timeline-victim-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.ransom-timeline-victim-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ransom-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ransom-count-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ransom-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    border-radius: 6px;
    padding: 2px 6px 2px 8px;
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.3;
    white-space: nowrap;
}

.ransom-count-chip.group-chip {
    background: rgba(244, 63, 94, 0.06);
    border-color: rgba(244, 63, 94, 0.22);
    color: #fda4af;
    cursor: pointer;
}

.ransom-count-chip.group-chip:hover {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.45);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
}

.ransom-count-chip.sector-chip {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.18);
    color: #cbd5e1;
}

.ransom-count-chip.sector-chip:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
    color: #f8fafc;
}

.ransom-count-chip .chip-icon {
    font-size: 0.62rem;
    opacity: 0.8;
}

.ransom-count-chip.group-chip .chip-icon {
    color: #fb7185;
}

.ransom-count-chip.sector-chip .chip-icon {
    color: #38bdf8;
}

.ransom-count-chip .chip-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ransom-count-chip b,
.ransom-count-chip .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 18px;
    padding: 0 5px;
    border-radius: 4px;
    font-family: var(--rw-font-mono, 'JetBrains Mono', 'Fira Code', monospace);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: -0.02em;
    transition: all 0.18s ease;
}

.ransom-count-chip.group-chip b,
.ransom-count-chip.group-chip .chip-count {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.35);
}

.ransom-count-chip.group-chip:hover b,
.ransom-count-chip.group-chip:hover .chip-count {
    background: rgba(244, 63, 94, 0.3);
    color: #fff;
    border-color: rgba(244, 63, 94, 0.6);
}

.ransom-count-chip.sector-chip b,
.ransom-count-chip.sector-chip .chip-count {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.ransom-count-chip.sector-chip:hover b,
.ransom-count-chip.sector-chip:hover .chip-count {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.55);
}

.ransom-bar-row {
    display: grid;
    grid-template-columns: minmax(72px, 0.9fr) 2fr 38px;
    gap: 8px;
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-main);
    text-align: left;
    font: inherit;
    font-size: 0.78rem;
    padding: 0;
    cursor: pointer;
}

.ransom-bar-label {
    overflow-wrap: anywhere;
}

.ransom-bar-row.has-flag {
    grid-template-columns: 44px 2fr 38px;
}

.ransom-bar-row.has-flag .ransom-bar-label {
    display: inline-flex;
    align-items: center;
}

.ransom-bar-row div {
    height: 7px;
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    overflow: hidden;
}

.ransom-bar-row b {
    display: block;
    height: 100%;
    background: var(--accent);
}

.ransom-bar-row em {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-style: normal;
    text-align: right;
}

.ransom-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
}

@media (max-width: 980px) {
    .mantis-ai-panel {
        inset: 8px;
        transform: translateY(16px) scale(0.985);
    }

    .ai-panel-open .mantis-ai-panel {
        transform: translateY(0) scale(1);
    }

    .ai-panel-body {
        grid-template-columns: 1fr;
    }

    .ai-workbench-rail {
        grid-column: 1;
        width: auto;
        max-width: none;
        max-height: 42vh;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .ai-workbench-main {
        grid-column: 1;
    }
}

.ransom-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.ransom-table th,
.ransom-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: left;
    vertical-align: top;
}

.ransom-table th {
    color: var(--text-muted);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.03);
}

.ransom-table small {
    display: block;
    color: var(--text-muted);
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.ransom-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.18);
    margin-right: 7px;
    vertical-align: middle;
    background: rgba(255,255,255,0.08);
}

.ransom-link {
    border: 0;
    background: transparent;
    color: var(--accent);
    padding: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.78rem;
    text-align: left;
}

.ransom-status {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--text-main);
    background: rgba(255,255,255,0.04);
    font-size: 0.7rem;
    font-weight: 800;
}

.ransom-empty,
.ransom-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    padding: 26px;
    text-align: center;
}

.ransom-inline-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(248,196,113,0.28);
    background: rgba(248,196,113,0.08);
    color: #f8c471;
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 800;
}

.ransom-filters,
.ransom-pager,
.ransom-profile-head {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ransom-filters input {
    min-width: 280px;
}

.ransom-filters select {
    min-width: 150px;
}

.ransom-watch-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.2fr) minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.ransom-pager {
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 12px;
}

.ransom-pager .btn-secondary.active {
    color: var(--accent);
    border-color: rgba(255, 204, 0, 0.55);
    background: rgba(255, 204, 0, 0.08);
}

.ransom-pager em {
    font-style: normal;
    padding-left: 4px;
}

.ransom-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ransom-chip {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--accent);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

.ransom-profile-head {
    padding: 14px;
    justify-content: space-between;
}

.ransom-profile-head h2 {
    margin: 0;
    color: var(--text-main);
}

.ransom-profile-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.mono-cell {
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.ransom-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: rgba(0,0,0,0.54);
    backdrop-filter: blur(4px);
}

.ransom-drawer {
    width: min(620px, 94vw);
    height: 100%;
    background: #121417;
    border-left: 1px solid rgba(255,255,255,0.12);
    box-shadow: -20px 0 60px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
}

.ransom-drawer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.ransom-drawer h3 {
    margin: 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.ransom-drawer-body {
    padding: 16px;
    overflow-y: auto;
}

.ransom-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ransom-detail-grid div,
.ransom-message-list article,
.ransom-detail-flag {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    padding: 10px;
}

.ransom-detail-grid span,
.ransom-message-list small {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ransom-detail-grid strong {
    display: block;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.ransom-detail-section {
    margin: 14px 0;
}

.ransom-detail-section h4 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--text-main);
}

.ransom-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.ransom-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: var(--accent);
    padding: 8px 10px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(255,255,255,0.035);
}

.ransom-pre {
    max-height: 340px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(0,0,0,0.28);
    color: var(--text-main);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.ransom-message-list {
    display: grid;
    gap: 8px;
}

.ransom-message-list article p {
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ransom-detail-flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .ransom-monitor-toolbar,
    .ransom-monitor-actions,
    .ransom-profile-head,
    .ransom-watch-form {
        align-items: stretch;
        flex-direction: column;
    }

    .ransom-watch-form {
        display: flex;
    }

    .ransom-workflow,
    .ransom-analyst-band {
        grid-template-columns: 1fr;
    }

    .ransom-workflow-steps {
        justify-content: flex-start;
    }

    .ransom-monitor-tab {
        flex: 1 1 150px;
    }
}

/* -----------------------------------------
   SIMILARITY ENGINE
   ----------------------------------------- */
.similarity-pane {
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 2px 26px;
    color: var(--text-main);
}

.similarity-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.similarity-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.similarity-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.similarity-tab {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    padding: 8px 11px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
}

.similarity-tab.active {
    color: var(--accent);
    border-color: rgba(255, 204, 0, 0.55);
    background: rgba(255, 204, 0, 0.08);
}

.similarity-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
}

.similarity-headline h3 {
    margin: 0;
    font-size: 1rem;
}

.similarity-headline p {
    margin: 5px 0 0;
    color: var(--text-muted);
    line-height: 1.45;
    font-size: 0.84rem;
}

.similarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.similarity-stat,
.similarity-panel,
.similarity-match,
.similarity-form {
    background: rgba(19, 24, 34, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.similarity-stat {
    padding: 16px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.similarity-stat-value {
    color: var(--accent);
    font-size: 1.85rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.similarity-stat-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.similarity-panel,
.similarity-form {
    padding: 16px;
}

.similarity-panel h3,
.similarity-form h3 {
    margin: 0 0 12px;
    font-size: 0.98rem;
    color: var(--text-main);
}

.similarity-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.similarity-section-title h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.similarity-subtext {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.similarity-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.similarity-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.similarity-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.similarity-settings-group {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(0,0,0,0.16);
}

.similarity-settings-group + .similarity-settings-group {
    margin-top: 14px;
}

.similarity-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.similarity-field label {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.similarity-field-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.similarity-field-row input {
    flex: 1;
    min-width: 0;
}

.similarity-icon-btn {
    width: 40px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    cursor: pointer;
}

.similarity-icon-btn:hover {
    border-color: rgba(255, 204, 0,0.45);
    color: var(--accent);
}

.similarity-field input,
.similarity-field select,
.similarity-field textarea {
    background: rgba(0,0,0,0.34);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    color: var(--text-main);
    font: 0.9rem var(--font-ui);
    outline: none;
    padding: 10px 11px;
}

.similarity-field textarea {
    min-height: 92px;
    resize: vertical;
}

.similarity-file {
    border: 1px dashed rgba(255, 204, 0,0.28);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 204, 0,0.035);
}

.similarity-file input[type="file"] {
    width: 100%;
}

.similarity-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.similarity-progress {
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
    padding: 12px;
}

.similarity-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.similarity-progress-note {
    color: var(--text-muted);
    border-left: 2px solid rgba(255, 204, 0,0.45);
    background: rgba(255, 204, 0,0.04);
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.similarity-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
}

.similarity-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.025);
    padding: 8px 10px;
    font-size: 0.78rem;
}

.similarity-progress-step i {
    width: 16px;
    text-align: center;
}

.similarity-progress-step.active {
    color: var(--accent);
    border-color: rgba(255, 204, 0,0.35);
    background: rgba(255, 204, 0,0.06);
}

.similarity-progress-step.done {
    color: var(--success);
    border-color: rgba(46,213,115,0.25);
    background: rgba(46,213,115,0.055);
}

.similarity-progress-step.failed {
    color: var(--danger);
    border-color: rgba(255,71,87,0.35);
    background: rgba(255,71,87,0.06);
}

.similarity-progress-log,
.similarity-progress-log-empty {
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}

.similarity-progress-log-empty {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.similarity-progress-log-title {
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.similarity-progress-log-title i {
    color: var(--accent);
    margin-right: 6px;
}

.similarity-progress-log-row {
    display: grid;
    grid-template-columns: 64px 105px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-height: 26px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.045);
    font-size: 0.76rem;
}

.similarity-progress-log-row.done .similarity-progress-log-phase {
    color: var(--success);
}

.similarity-progress-log-row.failed .similarity-progress-log-phase {
    color: var(--danger);
}

.similarity-progress-log-time,
.similarity-progress-log-phase {
    color: var(--text-muted);
    font-family: "Consolas", "Monaco", monospace;
}

.similarity-progress-log-message {
    color: var(--text-muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.similarity-progress-log-message b {
    color: var(--text-main);
    font-weight: 700;
}

.similarity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.similarity-table th {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

.similarity-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.similarity-table tr:hover td {
    background: rgba(255,255,255,0.025);
}

.similarity-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
}

.similarity-chip.good {
    color: var(--success);
    border-color: rgba(46, 213, 115, 0.3);
    background: rgba(46, 213, 115, 0.08);
}

.similarity-chip.warn {
    color: var(--highlight);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.similarity-chip.bad {
    color: var(--danger);
    border-color: rgba(255, 71, 87, 0.3);
    background: rgba(255, 71, 87, 0.08);
}

.similarity-match {
    padding: 16px;
    margin-bottom: 12px;
}

.similarity-match-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.similarity-score {
    color: var(--accent);
    font: 800 1.7rem var(--font-mono);
}

.similarity-bars {
    display: grid;
    gap: 8px;
}

.similarity-bar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 52px;
    gap: 9px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.similarity-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.similarity-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
}

.similarity-code {
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.similarity-loading,
.similarity-empty {
    color: var(--text-muted);
    padding: 28px;
    text-align: center;
}

.similarity-empty {
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(0,0,0,0.12);
}

.similarity-empty i {
    color: var(--accent);
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.similarity-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.similarity-toggle {
    cursor: pointer;
    user-select: none;
}

.similarity-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.62);
}

.similarity-picker {
    width: min(820px, 96vw);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: #0f141d;
    box-shadow: 0 18px 55px rgba(0,0,0,0.42);
}

.similarity-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.similarity-picker-head h3 {
    margin: 0;
    font-size: 0.98rem;
}

.similarity-picker-path {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font: 0.76rem var(--font-mono);
    overflow-wrap: anywhere;
}

.similarity-picker-list {
    overflow-y: auto;
    padding: 8px;
}

.similarity-picker-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    padding: 9px 10px;
    text-align: left;
}

.similarity-picker-row:hover {
    background: rgba(255,255,255,0.06);
}

.similarity-picker-row.is-file {
    color: var(--accent);
}

.similarity-picker-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
    .similarity-two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .similarity-headline {
        flex-direction: column;
    }

    .similarity-bar {
        grid-template-columns: 92px minmax(0, 1fr) 44px;
    }
}

/* -----------------------------------------
   POC INDEX
   ----------------------------------------- */
.poc-index-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: auto;
    color: var(--text-main);
    padding-bottom: 40px;
}

/* Hero */
.poc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(255,204,0,0.08) 0%, rgba(204,153,0,0.04) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.poc-hero-title {
    display: flex;
    align-items: center;
}

.poc-hero-title h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #ffcc00, #cc9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.poc-hero-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.poc-hero-stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    min-width: 100px;
    gap: 4px;
}

.stat-box span:first-child {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.stat-box span:last-child {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-box.is-accent span:first-child { color: var(--accent); }
.stat-box.is-danger span:first-child { color: var(--danger); }
.stat-box.is-warning span:first-child { color: var(--highlight); }

/* Search bar */
.poc-search-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 32px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}

.poc-search-bar .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.poc-search-bar .search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
}

.poc-search-bar input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-main);
    font: 0.95rem var(--font-ui);
    padding: 14px 18px 14px 44px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.poc-search-bar input:focus {
    border-color: rgba(255, 204, 0,0.5);
    background: rgba(255, 204, 0,0.04);
}

/* Filters */
.poc-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-caption {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}

.filter-chip:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--text-main);
}

.filter-chip.active {
    background: rgba(255, 204, 0,0.12);
    border-color: rgba(255, 204, 0,0.45);
    color: var(--accent);
}

.filter-chip.is-kev.active {
    background: rgba(255,71,87,0.14);
    border-color: rgba(255,71,87,0.5);
    color: var(--danger);
}

.filter-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.1);
}

/* Results area */
.poc-results-container {
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 480px;
}

/* Table headers */
.poc-table-head {
    display: grid;
    grid-template-columns: 70px 80px 1fr 1.6fr;
    gap: 12px;
    padding: 6px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Trending */
.poc-trending-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.poc-trending-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.poc-trend-row {
    display: grid;
    grid-template-columns: 70px 80px 1fr 1.6fr;
    gap: 12px;
    align-items: start;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}

.poc-trend-row:hover {
    background: rgba(255,255,255,0.025);
    border-radius: 6px;
}

.col-stars {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.col-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.col-name a {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.col-name a:hover { text-decoration: underline; }

.col-name .poc-kev-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255,71,87,0.18);
    border: 1px solid rgba(255,71,87,0.4);
    color: var(--danger);
    margin-right: 5px;
    vertical-align: middle;
}

.col-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.is-popular { color: #fbbf24 !important; }

/* Search results */
.poc-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.poc-results-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.poc-sort-switch {
    display: flex;
    gap: 4px;
}

.poc-sort-switch button {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.5px;
}

.poc-sort-switch button.active,
.poc-sort-switch button:hover {
    background: rgba(255, 204, 0,0.08);
    border-color: rgba(255, 204, 0,0.35);
    color: var(--accent);
}

/* CVE Result card */
.poc-result-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.poc-result-row:hover {
    background: rgba(255,255,255,0.018);
    border-radius: 8px;
}

.poc-result-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poc-cve-id {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    text-decoration: none;
}

.poc-cve-id:hover { text-decoration: underline; }

.poc-poc-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.poc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.poc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 30px;
}
.poc-page-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--fg);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.poc-page-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.poc-page-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    font-weight: 600;
}
.poc-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.poc-chip {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poc-chip.is-critical { background: rgba(255,71,87,0.14); border-color: rgba(255,71,87,0.4); color: var(--danger); }
.poc-chip.is-high { background: rgba(255,140,0,0.14); border-color: rgba(255,140,0,0.4); color: #ff8c00; }
.poc-chip.is-medium { background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.4); color: var(--highlight); }
.poc-chip.is-low { background: rgba(46,213,115,0.10); border-color: rgba(46,213,115,0.35); color: var(--success); }
.poc-chip.is-kev { background: rgba(255,71,87,0.18); border-color: rgba(255,71,87,0.5); color: var(--danger); }
.poc-chip.is-epss { background: rgba(255, 204, 0,0.08); border-color: rgba(255, 204, 0,0.3); color: var(--accent); }
.poc-chip.is-hot { background: rgba(255,100,0,0.14); border-color: rgba(255,100,0,0.45); color: #ff6400; }
.poc-chip.is-osv { background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.32); color: #7dd3fc; }

button.poc-chip {
    cursor: pointer;
    font-family: inherit;
}

button.poc-chip:hover {
    border-color: rgba(56,189,248,0.45);
    color: #7dd3fc;
}

button.poc-chip:disabled {
    cursor: wait;
    opacity: 0.6;
}

.poc-kev-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255,71,87,0.22);
    background: rgba(255,71,87,0.07);
    color: #ff8a96;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 0.72rem;
    line-height: 1.35;
}

.poc-kev-note i {
    color: var(--danger);
    flex: 0 0 auto;
}

.poc-kev-note span {
    min-width: 0;
}

.poc-osv-panel {
    border: 1px solid rgba(56,189,248,0.16);
    background: rgba(56,189,248,0.045);
    border-radius: 6px;
    padding: 10px;
    margin: 4px 0;
}

.poc-osv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.poc-osv-title {
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.poc-osv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.poc-osv-head a,
.poc-osv-refs a {
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
}

.poc-osv-head a:hover,
.poc-osv-refs a:hover {
    text-decoration: underline;
}

.poc-osv-summary {
    color: #b7c4d8;
    font-size: 0.76rem;
    line-height: 1.45;
}

.poc-osv-chip-row,
.poc-osv-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.poc-osv-section-title {
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.poc-osv-affected {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.poc-osv-affected-row {
    display: grid;
    grid-template-columns: minmax(150px, 260px) 1fr;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 5px;
    background: rgba(255,255,255,0.025);
    font-size: 0.72rem;
}

.poc-osv-affected-row strong {
    color: var(--text-main);
    word-break: break-word;
}

.poc-osv-affected-row span,
.poc-osv-empty {
    color: var(--text-muted);
}

.poc-osv-empty {
    font-size: 0.75rem;
}

.poc-ext-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.poc-ext-link {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.poc-ext-link:hover { color: var(--accent); border-color: rgba(255, 204, 0,0.3); }

.poc-result-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poc-result-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.poc-result-desc.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.poc-expander {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
    opacity: 0.7;
}

.poc-expander:hover { opacity: 1; }

/* PoC links list */
.poc-links-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.poc-link-row {
    display: grid;
    grid-template-columns: 90px 1fr 60px 48px;
    gap: 8px;
    align-items: center;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(255,255,255,0.025);
    font-size: 0.75rem;
}

.poc-link-row:hover { background: rgba(255,255,255,0.05); }

.poc-source-tag {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,204,0,0.1);
    border: 1px solid rgba(255,204,0,0.25);
    color: var(--accent);
}

.poc-source-tag.is-msf { background: rgba(46,213,115,0.1); border-color: rgba(46,213,115,0.3); color: var(--success); }
.poc-source-tag.is-nuclei { background: rgba(255,204,0,0.12); border-color: rgba(255,204,0,0.35); color: #ffcc00; }
.poc-source-tag.is-edb { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--highlight); }
.poc-source-tag.is-vulhub { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.3); color: #8b5cf6; }
.poc-source-tag.is-ghsa { background: rgba(255,71,87,0.1); border-color: rgba(255,71,87,0.3); color: var(--danger); }

.poc-link-name {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--text-main);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.poc-link-name a {
    color: inherit;
    text-decoration: none;
}

.poc-link-name a:hover { color: var(--accent); text-decoration: underline; }

.poc-link-stars {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
}

.poc-link-stars.is-popular { color: #fbbf24; }

.poc-link-age {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: right;
}

.poc-more-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 4px 10px;
    margin-top: 4px;
    transition: all 0.15s;
    align-self: flex-start;
}

.poc-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.poc-load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: rgba(255, 204, 0,0.06);
    border: 1px solid rgba(255, 204, 0,0.2);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.poc-load-more:hover {
    background: rgba(255, 204, 0,0.12);
    border-color: rgba(255, 204, 0,0.4);
}

.poc-loading-msg, .poc-empty-msg {
    text-align: center;
    color: var(--text-muted);
    min-height: 240px;
    padding: 40px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.poc-loading-msg i {
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.poc-no-links {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 5px;
    background: rgba(255,255,255,0.025);
}

/* ---- Skeleton shimmer ---- */
@keyframes poc-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.poc-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 1200px 100%;
    animation: poc-shimmer 1.6s ease-in-out infinite;
    border-radius: 4px;
    display: inline-block;
}

/* Stat box skeleton — replaces the "-" dash */
.stat-box.is-loading span:first-child {
    display: block;
    width: 72px;
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.13) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 1200px 100%;
    animation: poc-shimmer 1.6s ease-in-out infinite;
    color: transparent;
}

/* Trending skeleton rows */
.poc-skeleton-row {
    display: grid;
    grid-template-columns: 70px 80px 1fr 1.6fr;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.poc-skeleton-row span {
    height: 13px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 1200px 100%;
    animation: poc-shimmer 1.6s ease-in-out infinite;
    display: block;
}

/* Stagger each row so the shimmer feels alive */
.poc-skeleton-row:nth-child(2) span { animation-delay: 0.1s; }
.poc-skeleton-row:nth-child(3) span { animation-delay: 0.2s; }
.poc-skeleton-row:nth-child(4) span { animation-delay: 0.3s; }
.poc-skeleton-row:nth-child(5) span { animation-delay: 0.4s; }
.poc-skeleton-row:nth-child(6) span { animation-delay: 0.5s; }
.poc-skeleton-row:nth-child(7) span { animation-delay: 0.6s; }
.poc-skeleton-row:nth-child(8) span { animation-delay: 0.7s; }

/* Search result skeleton */
.poc-search-skeleton {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.poc-search-skeleton-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poc-search-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poc-search-skeleton span {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 1200px 100%;
    animation: poc-shimmer 1.6s ease-in-out infinite;
    display: block;
}

.poc-search-skeleton:nth-child(2) span { animation-delay: 0.12s; }
.poc-search-skeleton:nth-child(3) span { animation-delay: 0.24s; }
.poc-search-skeleton:nth-child(4) span { animation-delay: 0.36s; }
.poc-search-skeleton:nth-child(5) span { animation-delay: 0.48s; }

/* Search bar loading indicator */
.poc-search-bar.is-searching #poc-search-input {
    border-color: rgba(255, 204, 0,0.45);
    background: rgba(255, 204, 0,0.04);
}

.poc-search-bar.is-searching .search-icon {
    color: var(--accent);
}

.poc-syncing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 204, 0,0.08);
    border: 1px solid rgba(255, 204, 0,0.2);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 8px;
}

.vuln-mode-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    margin: 20px 32px 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
    width: fit-content;
}

.vuln-mode-tabs button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vuln-mode-tabs button.active,
.vuln-mode-tabs button:hover {
    color: var(--accent);
    background: rgba(255,204,0,0.08);
    font-weight: 600;
}

.vuln-mode-panel {
    width: 100%;
}

.osv-package-search {
    margin: 20px 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 16px;
}

.osv-search-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px auto;
    gap: 10px;
    align-items: center;
}

.osv-search-grid .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.osv-search-grid .search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
}

.osv-search-grid input,
.poc-search-bar input {
    background: var(--bg-input);
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-main);
    font: 0.95rem var(--font-ui);
    padding: 14px 18px 14px 44px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.osv-search-grid input:focus,
.poc-search-bar input:focus {
    border-color: rgba(255, 204, 0,0.5);
    background: rgba(255, 204, 0,0.04);
}

.osv-search-grid .search-input-wrapper input {
    width: 100%;
    padding-left: 42px;
}

#osv-package-search-btn {
    padding: 12px 20px;
    height: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.osv-ecosystem-row,
.osv-package-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.osv-package-actions .btn-secondary.active {
    color: var(--accent);
    border-color: rgba(255,204,0,0.35);
    background: rgba(255,204,0,0.08);
}

.osv-results-panel {
    padding: 20px 32px 40px;
}

.osv-record-row {
    display: grid;
    grid-template-columns: 220px 1fr 170px;
    gap: 18px;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.osv-record-row:hover {
    background: rgba(255,255,255,0.018);
    border-radius: 8px;
}

.osv-record-id a {
    color: #7dd3fc;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.osv-record-id a:hover {
    text-decoration: underline;
}

.osv-record-packages {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
    word-break: break-word;
}

.osv-record-summary {
    color: #b7c4d8;
    font-size: 0.82rem;
    line-height: 1.45;
}

.osv-record-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.osv-record-attrs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.osv-attr {
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}

.osv-attr.is-malicious,
.osv-attr.no-fix {
    color: var(--danger);
    border-color: rgba(255,71,87,0.35);
    background: rgba(255,71,87,0.11);
}

.osv-attr.has-fix {
    color: var(--success);
    border-color: rgba(46,213,115,0.3);
    background: rgba(46,213,115,0.09);
}

@media (max-width: 900px) {
    .poc-hero {
        flex-direction: column;
        padding: 20px;
    }

    .poc-hero-stats {
        width: 100%;
        justify-content: space-between;
    }

    .poc-search-bar {
        padding: 16px;
    }

    .vuln-mode-tabs,
    .osv-package-search {
        margin-left: 16px;
        margin-right: 16px;
    }

    .osv-search-grid,
    .osv-record-row {
        grid-template-columns: 1fr;
    }

    .osv-results-panel {
        padding: 16px;
    }

    .poc-results-container {
        padding: 16px;
    }

    .poc-result-row {
        grid-template-columns: 1fr;
    }

    .poc-table-head {
        grid-template-columns: 60px 70px 1fr;
    }

    .poc-trend-row {
        grid-template-columns: 60px 70px 1fr;
    }

    .poc-trend-row .col-desc {
        display: none;
    }

    .poc-link-row {
        grid-template-columns: 70px 1fr 50px;
    }

    .poc-link-age { display: none; }

    .poc-osv-head {
        flex-direction: column;
    }

    .poc-osv-affected-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Global dropdown polish. Keep this late so module-specific form rules do not
   fall back to the browser's grey native select styling. */
select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(8, 12, 20, 0.96);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%),
        linear-gradient(135deg, var(--accent) 50%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%,
        0 0;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    border-color: rgba(255,255,255,0.14);
    color: var(--text-main);
    color-scheme: dark;
    padding-right: 34px;
}

select:not([multiple]):hover {
    background-color: rgba(12, 18, 30, 0.98);
    border-color: rgba(255,204,0,0.34);
}

select:not([multiple]):focus {
    border-color: rgba(255,204,0,0.64);
    box-shadow: 0 0 0 2px rgba(255,204,0,0.18);
}

select option,
select optgroup {
    background: #0b111d;
    color: var(--text-main);
}

.xmon-media-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.xmon-media-link-pill:hover {
    background: rgba(255,204,0,0.12);
    border-color: rgba(255,204,0,0.4);
    transform: translateY(-1px);
    color: #fff;
}

select option:checked {
    background: var(--accent);
    color: #080b12;
}

/* ── Spinner / Rotation Animations ────────────────────────────────── */
@keyframes mantisSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner,
.fa-spin,
.mantis-spin,
i.spinner {
    animation: mantisSpin 1s linear infinite !important;
    display: inline-block;
}

.vt-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vt-download-btn:hover {
    background: rgba(255, 204, 0, 0.24);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
}

/* Telegram Channel Monitoring Dashboard */
.tg-mon-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}
.tg-mon-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.tg-stat-card {
    background: rgba(15, 23, 38, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tg-stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tg-stat-card .stat-value {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 800;
}
.tg-mon-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.tg-mon-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.16s ease;
}
.tg-mon-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.04);
}
.tg-mon-tab-btn.active {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.25);
}
.tg-feed-stream {
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Card View (Default) */
.tg-feed-stream.card-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
    align-content: start;
    padding: 2px 4px 14px 2px;
}

.tg-feed-stream.card-view .tg-feed-item {
    background: rgba(11, 17, 27, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    min-height: 140px;
}

.tg-feed-stream.card-view .tg-feed-item:hover {
    border-color: rgba(255, 204, 0, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.tg-feed-stream.card-view .tg-feed-body {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
    flex: 1;
    word-break: break-word;
    white-space: pre-wrap;
}

/* List View */
.tg-feed-stream.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-feed-stream.list-view .tg-feed-item {
    background: rgba(11, 17, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.16s ease;
}

.tg-feed-stream.list-view .tg-feed-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.tg-feed-stream.list-view .tg-feed-body {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* View Switcher Controls */
.tg-feed-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px;
}

.tg-view-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
    font-family: inherit;
    user-select: none;
}

.tg-view-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tg-view-btn.active {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.28);
}
.tg-feed-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    flex-wrap: wrap;
}
.tg-feed-channel {
    font-weight: 800;
    color: var(--accent);
}
.tg-cat-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}
.tg-feed-body a.tg-feed-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 2px;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}
.tg-feed-body a.tg-feed-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
.tg-feed-body a.tg-feed-link i {
    font-size: 0.72rem;
    flex-shrink: 0;
}
.tg-cat-threat_actor_public { background: rgba(168, 85, 247, 0.18); border: 1px solid rgba(168, 85, 247, 0.35); color: #c084fc; }
.tg-cat-hacktivism { background: rgba(6, 182, 212, 0.18); border: 1px solid rgba(6, 182, 212, 0.35); color: #22d3ee; }
.tg-cat-ransomware_leaks { background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.35); color: #f87171; }
.tg-cat-stealer_logs { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24; }
.tg-cat-malware_distribution { background: rgba(236, 72, 153, 0.18); border: 1px solid rgba(236, 72, 153, 0.35); color: #f472b6; }
.tg-cat-cti_research { background: rgba(59, 130, 246, 0.18); border: 1px solid rgba(59, 130, 246, 0.35); color: #60a5fa; }
.tg-exp-alert-tag {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ==========================================================================
   Breach Watcher UI Styles
   ========================================================================== */

/* Subtabs bar */
.bw-subtab-bar,
.tg-subtab-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Subtab buttons */
.bw-subtab-btn,
.tg-subtab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.bw-subtab-btn i,
.tg-subtab-btn i {
    font-size: 0.85rem;
    color: inherit;
}

.bw-subtab-btn:hover,
.tg-subtab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.bw-subtab-btn.active,
.tg-subtab-btn.active {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.09);
    border-color: rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.12);
}

/* Filter bar */
.bw-filterbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 10px 12px;
}

.bw-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.bw-search-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    pointer-events: none;
}

.bw-filterbar input[type="text"] {
    width: 100%;
    background: #080d17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-radius: 6px;
    padding: 8px 12px 8px 34px;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bw-filterbar input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.15);
}

.bw-filterbar select {
    background: #080d17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.16s ease;
}

.bw-filterbar select:focus {
    border-color: var(--accent);
}

.bw-filterbar select option {
    background: #0d1524;
    color: var(--text-main);
}

/* Feed item cards */
.bw-feed-card {
    background: rgba(11, 17, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bw-feed-card:hover {
    border-color: rgba(255, 204, 0, 0.28);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.bw-feed-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.35;
}

.bw-feed-summary {
    font-size: 0.84rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-top: 4px;
}

.bw-source-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bw-source-DailyDarkWeb { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.35); color: #c084fc; }
.bw-source-HaveIBeenPwned { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.35); color: #22d3ee; }
.bw-source-DataBreachesnet { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24; }
.bw-source-DarkWebInformer { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #f87171; }
.bw-source-SecurenzaCTI { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #34d399; }
.bw-source-InfostealersStats { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.35); color: #f472b6; }
.bw-source-RecentBreaches,
.bw-source-RecentBreachesLeaks { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.35); color: #a5b4fc; }
.bw-source-DataBreachwatch { background: rgba(20, 184, 166, 0.15); border: 1px solid rgba(20, 184, 166, 0.35); color: #5eead4; }

/* ==========================================================================
   MANTIS Cyber HUD Homepage Styles (Banner Theme)
   ========================================================================== */

.mantis-home-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 56px);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background: #05080f;
    border-radius: 12px;
    border: 1px solid rgba(255, 204, 0, 0.16);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), inset 0 0 80px rgba(255, 204, 0, 0.025);
    font-family: var(--font-mono);
    color: var(--text-main);
    user-select: none;
}

.m-home-hud {
    position: relative;
    width: 100%;
    min-height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 28px;
    z-index: 1;
    box-sizing: border-box;
}

.m-home-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Ambient Radial Cursor Light */
.m-home-cursor-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.065) 0%, rgba(255, 204, 0, 0.015) 45%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Top Telemetry Bar */
.m-home-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.12);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.m-home-top-left,
.m-home-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.m-hud-tag {
    color: var(--accent);
    font-weight: 700;
}

.m-hud-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: mPulse 2s infinite;
}

@keyframes mPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.m-hud-telemetry {
    color: var(--text-muted);
}

.m-hud-coord {
    color: #38bdf8;
    font-size: 0.72rem;
}

.m-hud-status {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.22);
    padding: 3px 9px;
    border-radius: 4px;
}

.m-home-sidebar-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: none;
    transition: all 0.16s ease;
}

.m-home-sidebar-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
}

/* 3-Column Main Body */
.m-home-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 290px 1fr 330px;
    gap: 24px;
    align-items: center;
    flex: 1;
    margin: 10px 0;
}

/* --- Left Column: Meta & Modules --- */
.m-home-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.m-home-meta-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 2px solid var(--accent);
    padding-left: 12px;
}

.m-meta-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}

.m-meta-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.m-meta-slash {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
}

.m-meta-lead {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 800;
    margin-top: 2px;
}

/* Interactive Module List */
.m-module-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 4px;
}

.m-mod-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-mod-bracket {
    font-weight: 800;
    color: var(--text-muted);
    transition: color 0.18s ease;
    font-size: 0.8rem;
}

.m-mod-indicator {
    color: var(--text-muted);
    font-weight: 900;
    transition: color 0.18s ease;
    display: inline-block;
    min-width: 9px;
    text-align: center;
}

.m-mod-name {
    flex: 1;
    transition: color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-mod-arrow {
    font-size: 0.65rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    color: var(--accent);
}

/* Module Hover Animation */
.m-mod-item:hover,
.m-mod-item.active {
    color: #ffffff;
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.28);
    border-left: 2px solid var(--accent);
    transform: translateX(4px);
    box-shadow: 0 2px 14px rgba(255, 204, 0, 0.12);
}

.m-mod-item:hover .m-mod-bracket,
.m-mod-item.active .m-mod-bracket {
    color: var(--accent);
}

.m-mod-item:hover .m-mod-indicator,
.m-mod-item.active .m-mod-indicator {
    color: var(--accent);
}

.m-mod-item:hover .m-mod-arrow,
.m-mod-item.active .m-mod-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Scanning Sweep Laser Effect on Item Hover */
.m-mod-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.22), transparent);
    pointer-events: none;
    transition: none;
}

.m-mod-item:hover::after {
    left: 140%;
    transition: left 0.55s ease-in-out;
}

/* --- Center Column: Hero Reticle & Quick Search --- */
.m-home-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    text-align: center;
    position: relative;
    padding: 10px;
}

/* Radar Reticle Framing */
.m-radar-wrap {
    position: relative;
    width: 440px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    transition: transform 0.25s ease-out;
}

/* Corner Framing Brackets */
.m-reticle-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: var(--accent);
    border-style: solid;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.m-reticle-corner.corner-tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.m-reticle-corner.corner-tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.m-reticle-corner.corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.m-reticle-corner.corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.m-radar-wrap:hover .m-reticle-corner {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

.m-radar-wrap:hover .corner-tl { transform: translate(-3px, -3px); }
.m-radar-wrap:hover .corner-tr { transform: translate(3px, -3px); }
.m-radar-wrap:hover .corner-bl { transform: translate(-3px, 3px); }
.m-radar-wrap:hover .corner-br { transform: translate(3px, 3px); }

/* Concentric Radar Rings */
.m-radar-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.m-radar-ring.ring-outer {
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(255, 204, 0, 0.2);
    animation: mRotateCw 45s linear infinite;
}

.m-radar-ring.ring-middle {
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 204, 0, 0.14);
    animation: mRotateCcw 30s linear infinite;
}

.m-radar-ring.ring-inner {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 204, 0, 0.08);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.04);
}

@keyframes mRotateCw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mRotateCcw {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Radar Sweep Line */
.m-radar-sweep {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 204, 0, 0.12) 35deg, transparent 40deg);
    animation: mRotateCw 8s linear infinite;
    pointer-events: none;
}

/* Glowing Hero Title Box */
.m-hero-title-box {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.m-hero-title {
    font-family: 'Michroma', var(--font-mono);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 16px;
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 204, 0, 0.85), 0 0 35px rgba(255, 204, 0, 0.45), 0 0 65px rgba(255, 204, 0, 0.25);
    margin: 0;
    line-height: 1;
    padding-left: 16px; /* Offset letter-spacing */
    transition: text-shadow 0.3s ease;
}

.m-hero-title:hover {
    text-shadow: 0 0 22px rgba(255, 204, 0, 1), 0 0 50px rgba(255, 204, 0, 0.7), 0 0 90px rgba(255, 204, 0, 0.45);
}

.m-hero-lambda {
    color: var(--accent);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.9));
}

.m-hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-top: 4px;
}

.m-hero-subtitle .m-hl {
    color: var(--accent);
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
}

/* Quick Search Shell */
.m-home-search-wrap {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.m-search-input-shell {
    display: flex;
    align-items: center;
    background: rgba(7, 12, 20, 0.94);
    border: 1px solid rgba(255, 204, 0, 0.32);
    border-radius: 8px;
    padding: 5px 6px 5px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(255, 204, 0, 0.05);
    transition: all 0.2s ease;
}

.m-search-input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(255, 204, 0, 0.28), inset 0 0 16px rgba(255, 204, 0, 0.08);
}

.m-search-ico {
    color: var(--accent);
    font-size: 1rem;
    margin-right: 12px;
}

.m-search-input-shell input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    outline: none;
}

.m-search-input-shell input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

.m-search-go-btn {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.22) 0%, rgba(204, 153, 0, 0.12) 100%);
    border: 1px solid rgba(255, 204, 0, 0.45);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s ease;
}

.m-search-go-btn:hover {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.5);
    transform: translateY(-1px);
}

/* Quick Search Shortcut Chips */
.m-search-chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.m-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.16s ease;
}

.m-chip:hover {
    color: var(--accent);
    border-color: rgba(255, 204, 0, 0.35);
    background: rgba(255, 204, 0, 0.08);
    transform: translateY(-1px);
}

/* Bottom Action Pillars */
.m-action-pillars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.m-pillar {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.18s ease;
}

.m-pillar:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
    background: rgba(255, 204, 0, 0.06);
}

.m-pillar-dot {
    color: var(--accent);
    font-weight: 900;
}

/* --- Right Column: Holographic Globe & Telemetry --- */
.m-home-col-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 380px;
}

.m-globe-stage {
    position: relative;
    width: 320px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-globe-canvas {
    width: 280px;
    height: 280px;
    cursor: grab;
    filter: drop-shadow(0 0 25px rgba(255, 204, 0, 0.28));
    transition: filter 0.3s ease;
}

.m-globe-canvas:active {
    cursor: grabbing;
}

.m-globe-stage:hover .m-globe-canvas {
    filter: drop-shadow(0 0 35px rgba(255, 204, 0, 0.45));
}

/* Callout Overlays matching the Banner */
.m-globe-callout {
    position: absolute;
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    pointer-events: none;
    z-index: 2;
}

.m-globe-callout.callout-top {
    top: 15px;
    right: -10px;
    align-items: flex-start;
}

.m-globe-callout.callout-bottom {
    bottom: 25px;
    right: 0px;
    align-items: flex-start;
}

.m-callout-bracket {
    width: 24px;
    height: 12px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
    margin-bottom: 4px;
    opacity: 0.8;
}

.m-globe-callout.callout-bottom .m-callout-bracket {
    border-top: none;
    border-bottom: 2px solid var(--accent);
    margin-top: 4px;
    margin-bottom: 0;
}

.m-callout-text {
    background: rgba(6, 11, 20, 0.75);
    border: 1px solid rgba(255, 204, 0, 0.18);
    padding: 6px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.m-callout-head {
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2px;
}

.m-callout-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* --- Bottom HUD Footer Bracket --- */
.m-home-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 204, 0, 0.12);
    padding-top: 14px;
    margin-top: 16px;
    font-size: 0.74rem;
    letter-spacing: 1.5px;
}

.m-footer-left,
.m-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-footer-bracket-l {
    width: 14px;
    height: 14px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.m-footer-bracket-r {
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.m-footer-slogan {
    font-weight: 800;
    color: var(--text-muted);
}

.m-footer-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.m-status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m-status-pill i {
    color: var(--accent);
}

/* Signal Meter Bars */
.m-signal-meter {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.meter-bar {
    width: 6px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.meter-bar.active {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

/* Sidebar Logo Hero Hover Glow */
#sidebar-logo-hero {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

#sidebar-logo-hero:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.45));
}

#sidebar-logo-hero:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .m-home-body {
        grid-template-columns: 260px 1fr 280px;
        gap: 16px;
    }
    .m-radar-wrap {
        width: 360px;
    }
    .m-hero-title {
        font-size: 2.8rem;
        letter-spacing: 12px;
    }
}

@media (max-width: 1080px) {
    .m-home-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .m-home-col-left {
        order: 2;
    }
    .m-home-col-center {
        order: 1;
    }
}

/* =========================================================================
   MANTIS Minimalist Cyber HUD Banner Homepage
   ========================================================================= */

/* Main HUD container */
.m-home-hud.m-home-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: calc(100vh - 56px);
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Floating Cyber Burger Button (top-left) */
.m-home-burger-btn {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: rgba(10, 16, 26, 0.85);
    border: 1px solid rgba(255, 204, 0, 0.35);
    color: var(--accent);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    margin: 0;
    outline: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 204, 0, 0.05);
}

.m-home-burger-btn:hover {
    background: rgba(255, 204, 0, 0.16);
    border-color: var(--accent);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(255, 204, 0, 0.45), inset 0 0 12px rgba(255, 204, 0, 0.15);
}

.m-home-burger-btn:active {
    transform: scale(0.96);
}

/* 3-Column Balanced Grid: Left Spacer (1fr) | Center Reticle (auto) | Right Globe (1fr) */
.m-home-minimal-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 56px);
    position: relative;
    z-index: 2;
    padding: 40px 48px;
    box-sizing: border-box;
}

.m-home-col-spacer {
    width: 100%;
    pointer-events: none;
}

.m-home-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-home-col-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    justify-self: center;
}

/* Clickable Glowing Hero Title Box */
#m-home-enter-btn {
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#m-home-enter-btn:hover {
    transform: scale(1.04);
}

#m-home-enter-btn:hover .m-hero-title {
    text-shadow: 0 0 24px rgba(255, 204, 0, 1), 0 0 55px rgba(255, 204, 0, 0.8), 0 0 95px rgba(255, 204, 0, 0.5);
}

.m-hero-enter-hint {
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent);
    background: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.28);
    padding: 6px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    animation: mPulse 2.4s infinite;
}

#m-home-enter-btn:hover .m-hero-enter-hint {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.6);
    border-color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
    .m-home-minimal-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        padding: 70px 24px 40px;
        min-height: auto;
    }
    .m-home-col-spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .m-home-col-right {
        display: none;
    }
    .m-radar-wrap {
        width: 320px;
        height: 320px;
    }
    .m-hero-title {
        font-size: 2.2rem;
        letter-spacing: 8px;
    }
    .m-home-burger-btn {
        top: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}




/* ==========================================================================
   ENHANCED VIRUSTOTAL UI SUITE
   ========================================================================== */

.vt-ui-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* Detection Hero Card */
.vt-hero-card {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(13, 17, 23, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vt-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.vt-hero-verdict {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vt-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vt-score-badge.critical {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

.vt-score-badge.warning {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.vt-score-badge.clean {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.vt-score-badge.neutral {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
}

.vt-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vt-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.vt-meta-pill b {
    color: var(--text-main);
}

.vt-meta-pill.gui-link {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vt-meta-pill.gui-link:hover {
    background: rgba(255, 204, 0, 0.2);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Ratio Bar */
.vt-ratio-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    width: 100%;
}

.vt-ratio-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.vt-ratio-seg.mal { background: #ef4444; }
.vt-ratio-seg.susp { background: #f59e0b; }
.vt-ratio-seg.clean { background: #10b981; }
.vt-ratio-seg.undet { background: rgba(255, 255, 255, 0.1); }

/* Threat Tags Bar */
.vt-threat-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.76rem;
}

.vt-threat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
}

.vt-threat-pill.family {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.vt-threat-pill.tag {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

/* Engine Grid Controls */
.vt-engine-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 4px;
}

.vt-engine-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vt-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vt-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.vt-filter-btn.active {
    background: rgba(255, 204, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.vt-engine-search {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.74rem;
    color: var(--text-main);
    outline: none;
    width: 160px;
    transition: all 0.2s ease;
}

.vt-engine-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.2);
    width: 200px;
}

/* Engine Grid Container */
.vt-engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.vt-engine-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.15s ease;
}

.vt-engine-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.vt-engine-chip.is-malicious {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.04);
}

.vt-engine-chip.is-suspicious {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

.vt-engine-chip.is-clean {
    border-left: 3px solid #10b981;
}

.vt-engine-chip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.vt-engine-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-engine-status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.vt-engine-status-badge.malicious {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.vt-engine-status-badge.suspicious {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.vt-engine-status-badge.clean {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.vt-engine-status-badge.undetected {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.vt-engine-result-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* File DNA / Attributes Key-Value Grid */
.vt-card-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.vt-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.vt-hash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.vt-hash-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vt-hash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vt-hash-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.vt-copy-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.74rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.vt-copy-action:hover {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
}

.vt-hash-value {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    color: var(--text-main);
    word-break: break-all;
    user-select: all;
}

/* Unified Relations Explorer */
.vt-relations-explorer {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-relations-layout {
    display: grid;
    grid-template-columns: minmax(140px, 205px) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}
.vt-relations-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-inline-end: 10px;
    border-inline-end: 1px solid var(--border-light);
}
.vt-relations-nav .vt-rel-pill {
    width: 100%;
    border-radius: 6px;
    padding: 7px 9px;
    white-space: normal;
    text-align: start;
}
.vt-relations-nav .vt-rel-pill:focus-visible { outline: 2px solid var(--accent); }
.vt-rel-pane[hidden] { display: none; }
.vt-rel-status {
    flex: none;
    margin-inline-start: auto;
    color: var(--text-muted);
}
.vt-rel-status[data-status="findings"] { color: #75d9a3; }
.vt-rel-status[data-status="error"] { color: #ffb788; }
.vt-rel-loading { padding: 12px; color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 650px) {
    .vt-relations-layout { grid-template-columns: minmax(0, 1fr); }
    .vt-relations-nav {
        max-height: 180px;
        overflow-y: auto;
        border-inline-end: 0;
        padding-inline-end: 0;
    }
}

.vt-rel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.vt-rel-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.vt-rel-pill.active {
    background: rgba(255, 204, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.vt-rel-view-pane {
    min-width: 0;
    overflow-x: auto;
    min-height: 80px;
}

/* Telegram authentication settings */
#tg-auth-settings-view { font-family: var(--font-ui); }
#tg-auth-settings-view .tg-auth-card { max-width: 920px; padding: 0; overflow: hidden; }
.tg-auth-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px; border-bottom: 1px solid var(--border); }
.tg-auth-heading h2, .tg-auth-form-heading h3 { margin: 0; color: var(--text-main); font-family: var(--font-ui); }
.tg-auth-heading h2 { font-size: 1.12rem; }
.tg-auth-heading p, .tg-auth-form-heading p { margin: 7px 0 0; color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
.tg-auth-protocol { flex: none; padding: 5px 9px; color: var(--accent); background: rgba(255,204,0,.07); border: 1px solid rgba(255,204,0,.18); border-radius: 5px; font: 500 .7rem var(--font-mono); }
.tg-auth-content { padding: 24px 28px 28px; }
.tg-auth-status-label { margin-bottom: 9px; color: var(--text-muted); font-size: .66rem; font-weight: 700; letter-spacing: .08em; }
#tg-auth-status { min-height: 44px; display: flex; align-items: center; line-height: 1.5; }
.tg-auth-connected { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.tg-auth-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#tg-auth-settings-view .tg-auth-form { max-width: 560px; gap: 16px; margin-top: 28px; }
.tg-auth-form-heading h3 { font-size: .94rem; }
#tg-auth-settings-view .tg-auth-form label { display: flex; flex-direction: column; gap: 7px; color: var(--text-main); font-size: .78rem; font-weight: 600; }
#tg-auth-settings-view .tg-auth-form label span { color: var(--text-muted); font-weight: 400; }
#tg-auth-settings-view .tg-auth-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; font: .8rem var(--font-mono); }
#tg-auth-settings-view .tg-auth-form button { align-self: flex-start; min-height: 40px; margin-top: 2px; }
.tg-auth-help { display: flex; gap: 10px; align-items: baseline; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .78rem; line-height: 1.6; }
.tg-auth-help i { color: var(--accent); }
.tg-auth-help p { margin: 0; }
.tg-auth-help a { color: var(--accent); font-family: var(--font-mono); overflow-wrap: anywhere; }
.tg-auth-help strong { color: var(--text-main); font-weight: 600; }
@media (max-width: 600px) { .tg-auth-heading { padding: 20px; } .tg-auth-content { padding: 20px; } #tg-auth-settings-view .tg-auth-form button { width: 100%; } }

/* Authentication requirement for native Telegram collection */
.tg-mode-card.tg-mode-locked { opacity: .58; cursor: not-allowed; }
.tg-mode-auth-notice { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--text-muted); font-size: .8rem; line-height: 1.5; }
.tg-mode-auth-notice[hidden] { display: none; }
.tg-mode-auth-notice button { flex-shrink: 0; }

/* Telegram Channel Monitor */
#tg-channel-mon-section { font-family: var(--font-ui); min-width: 0; }
.tg-monitor-header, .tg-monitor-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tg-monitor-header { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.tg-monitor-header h2, .tg-monitor-overview h3 { margin: 0; color: var(--text-main); font-family: var(--font-ui); }
.tg-monitor-header h2 { font-size: 1.1rem; }
.tg-monitor-overview h3 { font-size: .9rem; }
.tg-monitor-header p, .tg-monitor-overview p, .tg-monitor-auth-notice p { margin: 6px 0 0; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
.tg-monitor-header button, .tg-monitor-overview button { flex-shrink: 0; }
.tg-monitor-auth-notice { margin-top: 20px; padding: 20px; border: 1px solid rgba(255,204,0,.2); border-radius: 8px; background: rgba(255,204,0,.035); color: var(--text-main); font-size: .85rem; }
#tg-monitor-content[hidden], #tg-monitor-auth-notice[hidden] { display: none; }
#tg-monitor-content { gap: 20px; margin-top: 22px; min-width: 0; }
#tg-channel-mon-section .tg-stat-card { padding: 16px; background: rgba(255,255,255,.025); }
#tg-channel-mon-section .tg-stat-card .stat-label { font-size: .68rem; }
#tg-channel-mon-section .tg-stat-card .stat-value { font-family: var(--font-mono); font-size: 1.3rem; }
#tg-channel-mon-section .tg-mon-tabs { overflow-x: auto; max-width: 100%; }
#tg-channel-mon-section .tg-mon-tab-btn { flex: 0 0 auto; font-family: var(--font-ui); }
#tg-channel-mon-section .tg-subtab-content { min-width: 0; }
#tg-channel-mon-section input, #tg-channel-mon-section select { min-width: 0; max-width: 100%; font-family: var(--font-ui); }
#tg-channel-mon-section input { font-family: var(--font-mono); }
#tg-channel-mon-section .tg-feed-body, #tg-channel-mon-section .tg-feed-channel, #tg-channel-mon-section a, #tg-exposures-table-wrap { overflow-wrap: anywhere; }
#tg-channel-mon-section .tg-feed-body a, #tg-channel-mon-section code, #tg-channel-mon-section .tg-feed-channel { font-family: var(--font-mono); }
#tg-channel-mon-section .tg-feed-stream.card-view { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
#tg-exposures-table-wrap { overflow-x: auto; }
@media (max-width: 600px) {
    .tg-monitor-header, .tg-monitor-overview { align-items: stretch; flex-direction: column; }
    .tg-monitor-header button, .tg-monitor-overview button { align-self: flex-start; }
    #tg-channel-mon-section .tg-mon-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #tg-channel-mon-section .tg-subtab-content > div[style*="display:flex"] { flex-wrap: wrap; }
    #tg-channel-mon-section .tg-subtab-content input { flex: 1 1 100% !important; }
    #tg-channel-mon-section .tg-feed-view-switch { margin-left: 0 !important; }
}

/* Dump Messages workspace */
#tg-invest-view { font-family: var(--font-ui); }
#tg-invest-view.tg-toolkit-visible { gap: 18px !important; }
#tg-invest-view .tg-section { padding: 24px; background: rgba(255,255,255,.02); box-shadow: none; }
#tg-invest-view .tg-section-head { margin-bottom: 18px; padding-bottom: 16px; }
#tg-invest-view .tg-section-title { font-size: .96rem; font-weight: 700; }
#tg-invest-view .tg-section-subtitle { margin-top: 5px; }
#tg-invest-view .tg-mode-grid { gap: 12px; }
#tg-invest-view .tg-mode-card { position: relative; padding: 18px; background: rgba(255,255,255,.018); }
#tg-invest-view .tg-mode-card.active { background: rgba(255,204,0,.045); border-color: rgba(255,204,0,.4); }
#tg-invest-view .tg-mode-card input { position: absolute; opacity: 0; width: 1px; height: 1px; display: block; }
#tg-invest-view .tg-mode-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
#tg-invest-view .tg-mode-main { align-items: flex-start; gap: 11px; }
#tg-invest-view .tg-mode-indicator { margin-top: 3px; width: 14px; height: 14px; border: 1px solid #738094; border-radius: 50%; flex: 0 0 14px; }
#tg-invest-view .tg-mode-card.active .tg-mode-indicator { border: 4px solid var(--accent); }
#tg-invest-view .tg-mode-card.active .tg-mode-name { color: var(--text-main); }
#tg-invest-view .tg-mode-name { font-size: .86rem; font-weight: 700; }
#tg-invest-view .tg-mode-meta { margin-top: 4px; font-weight: 500; }
#tg-invest-view .tg-mode-desc { margin: 12px 0 0 25px; line-height: 1.55; }
#tg-invest-view .tg-mode-auth-notice { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.tg-manual-help { border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.015); color: var(--text-muted); font-size: .8rem; }
.tg-manual-help summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 16px 20px; color: var(--text-main); font-weight: 700; }
.tg-manual-help summary span { color: var(--text-muted); font-size: .75rem; font-weight: 500; }
.tg-manual-help details[open] summary { border-bottom: 1px solid var(--border); }
.tg-manual-help ol { margin: 0; padding: 14px 24px 16px 42px; line-height: 1.9; }
#tg-invest-view .tg-add-bot-grid { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(145px, .75fr) auto; align-items: end; gap: 12px; }
#tg-invest-view .tg-bot-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--text-main); font-size: .76rem; font-weight: 600; }
#tg-invest-view .tg-bot-field span { color: var(--text-muted); font-weight: 400; }
#tg-invest-view .tg-bot-field input, #tg-invest-view .tg-bot-field select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; font-family: var(--font-mono); }
#tg-invest-view .tg-bot-field select { font-family: var(--font-ui); }
#tg-invest-view #tg-bot-add { min-height: 42px; white-space: nowrap; }
#tg-invest-view .tg-safety-note { margin-bottom: 18px !important; line-height: 1.6; }
#tg-invest-view .tg-bots-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
#tg-invest-view .tg-bots-grid .empty-state { min-height: 150px; padding: 24px; }
#tg-invest-view .tg-filter-row input, #tg-invest-view .tg-filter-row select { min-height: 40px; max-width: 100%; }
#tg-invest-view .tg-bot-card, #tg-invest-view .tg-messages-list { overflow-wrap: anywhere; }
#tg-invest-view code, #tg-invest-view .tg-bot-card a, #tg-invest-view .tg-messages-list a { font-family: var(--font-mono); overflow-wrap: anywhere; }
@media (max-width: 1050px) { #tg-invest-view .tg-add-bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #tg-invest-view .tg-bot-token-field { grid-column: 1 / -1; } #tg-invest-view #tg-bot-add { justify-self: start; } }
@media (max-width: 600px) { #tg-invest-view .tg-section { padding: 18px; } #tg-invest-view .tg-mode-grid, #tg-invest-view .tg-add-bot-grid { grid-template-columns: minmax(0, 1fr); } #tg-invest-view .tg-bot-token-field { grid-column: auto; } #tg-invest-view #tg-bot-add { justify-self: stretch; } #tg-invest-view .tg-filter-row > * { flex: 1 1 100%; min-width: 0; } }

/* Telegram bot lookup */
#tg-info-view { font-family: var(--font-ui); }
#tg-info-view .tg-info-panel { max-width: 1020px; padding: 24px; box-shadow: none; background: rgba(255,255,255,.02); }
.tg-info-heading { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.tg-info-heading h2 { margin: 0; color: var(--text-main); font-size: 1rem; }
.tg-info-heading p { margin: 6px 0 0; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
.tg-info-form { display: flex; align-items: end; gap: 12px; margin-top: 20px; }
.tg-info-form label { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; color: var(--text-main); font-size: .78rem; font-weight: 600; }
#tg-info-token { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; font: .8rem var(--font-mono); }
.tg-info-form button { min-height: 42px; flex: none; }
.tg-info-note { margin: 13px 0 0; color: var(--text-muted); font-size: .77rem; line-height: 1.5; }
.tg-info-note i { color: var(--accent); margin-right: 5px; }
#tg-info-results:not(:empty) { margin-top: 22px; }
.tg-info-result { border: 1px solid var(--border); border-radius: 8px; background: rgba(0,0,0,.14); overflow: hidden; }
.tg-info-result-head { padding: 18px; border-bottom: 1px solid var(--border); }
.tg-info-result-label { color: var(--text-muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.tg-info-result-head h3 { margin: 8px 0 4px; color: var(--text-main); font-size: 1rem; overflow-wrap: anywhere; }
.tg-info-username { color: var(--accent); font: .78rem var(--font-mono); overflow-wrap: anywhere; }
.tg-info-properties { margin: 0; padding: 4px 18px; }
.tg-info-property { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.tg-info-property:last-child { border-bottom: 0; }
.tg-info-property dt { color: var(--text-muted); font-family: var(--font-mono); overflow-wrap: anywhere; }
.tg-info-property dd { margin: 0; color: var(--text-main); font-family: var(--font-mono); overflow-wrap: anywhere; }
.tg-info-property dd.is-true { color: var(--success); }
.tg-info-property dd.is-false { color: var(--danger); }
@media (max-width: 600px) { #tg-info-view .tg-info-panel { padding: 18px; } .tg-info-form { align-items: stretch; flex-direction: column; } .tg-info-form button { width: 100%; } .tg-info-property { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* X Monitor workspace */
#x-monitor-pane { font-family: var(--font-ui); padding: 8px 12px 28px; }
#x-monitor-pane .xmon-hero { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
#x-monitor-pane .xmon-hero h1 { margin: 0; font-size: 1.05rem; font-weight: 700; }
#x-monitor-pane .xmon-hero p { margin-top: 6px; font-size: .8rem; }
#x-monitor-pane .xmon-actions { gap: 10px; }
#x-monitor-pane .xmon-actions button { min-height: 40px; }
#x-monitor-pane .xmon-filterbar { background: rgba(255,255,255,.018); border-color: var(--border); border-radius: 10px; padding: 16px; gap: 10px; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(110px, 1fr)) auto; }
#x-monitor-pane .xmon-filterbar input, #x-monitor-pane .xmon-filterbar select { box-sizing: border-box; min-height: 40px; font-family: var(--font-ui); font-size: .78rem; }
#x-monitor-pane .xmon-filterbar input[type="text"] { font-family: var(--font-mono); }
#x-monitor-pane .xmon-filterbar input:focus, #x-monitor-pane .xmon-filterbar select:focus { border-color: var(--accent); }
#x-monitor-pane .xmon-filterbar button { min-height: 40px; }
#x-monitor-pane .xmon-summary { background: rgba(255,255,255,.018); border-color: var(--border); border-radius: 10px; padding: 18px; }
#x-monitor-pane .xmon-metrics { order: -1; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; }
#x-monitor-pane .xmon-metric { min-width: 0; min-height: 62px; padding: 4px 14px; background: transparent; border: 0; border-radius: 0; border-right: 1px solid var(--border); }
#x-monitor-pane .xmon-metric:last-child { border-right: 0; }
#x-monitor-pane .xmon-metric i { display: none; }
#x-monitor-pane .xmon-metric strong { font: 600 1.15rem var(--font-mono); }
#x-monitor-pane .xmon-metric span { display: block; margin-top: 7px; font-size: .64rem; line-height: 1.4; letter-spacing: .03em; }
#x-monitor-pane .xmon-health { padding-top: 14px; border-top: 1px solid var(--border); }
#x-monitor-pane .xmon-health span { background: transparent; border: 0; border-radius: 0; padding: 2px 12px 2px 0; }
#x-monitor-pane .xmon-tabs { gap: 7px; }
#x-monitor-pane .xmon-tabs button { font-family: var(--font-ui); font-weight: 600; padding: 8px 13px; }
#x-monitor-pane .xmon-feed-shell { background: rgba(255,255,255,.018); border-color: var(--border); border-radius: 10px; padding: 20px; }
#x-monitor-pane .xmon-feed-title { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
#x-monitor-pane .xmon-feed-title h3 { font-size: .95rem; }
#x-monitor-pane .xmon-empty { min-height: 210px; }
#x-monitor-pane .xmon-card { box-shadow: none; overflow-wrap: anywhere; }
#x-monitor-pane .xmon-card a, #x-monitor-pane .xmon-entity-strip, #x-monitor-pane code { font-family: var(--font-mono); overflow-wrap: anywhere; }
@media (max-width: 1300px) { #x-monitor-pane .xmon-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } #x-monitor-pane .xmon-metric:nth-child(4) { border-right: 0; } #x-monitor-pane .xmon-filterbar { grid-template-columns: repeat(4, minmax(0, 1fr)); } #x-monitor-pane #xmon-search { grid-column: span 2; } }
@media (max-width: 700px) { #x-monitor-pane .xmon-hero { align-items: stretch; flex-direction: column; padding: 18px; } #x-monitor-pane .xmon-actions { justify-content: flex-start; } #x-monitor-pane .xmon-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } #x-monitor-pane .xmon-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } #x-monitor-pane .xmon-metric:nth-child(even) { border-right: 0; } #x-monitor-pane .xmon-feed-title { align-items: flex-start; flex-direction: column; } #x-monitor-pane .xmon-feed-title span { text-align: left; } }

#x-monitor-pane > * + * { margin-top: 18px; }

#x-monitor-pane [hidden] { display: none !important; }
.xmon-locked { display: flex; gap: 16px; align-items: flex-start; max-width: 720px; padding: 26px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }
.xmon-lock-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 8px; color: var(--accent); background: rgba(255,204,0,.08); }
.xmon-locked h2 { margin: 0; color: var(--text-main); font: 700 1rem var(--font-ui); }
.xmon-locked p { margin: 8px 0 18px; color: var(--text-muted); font: .82rem/1.6 var(--font-ui); }
@media (max-width: 600px) { .xmon-locked { padding: 20px; } }

/* Ransomware Monitor workspace */
#ransomware-monitor-pane { gap: 18px; padding: 8px 12px 28px; font-family: var(--font-ui); min-width: 0; }
#ransomware-monitor-pane .ransom-hero { padding: 22px 24px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }
.ransom-hero-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ransom-hero-main h1 { margin: 0; color: var(--text-main); font-size: 1.05rem; font-weight: 700; }
.ransom-hero-main p { margin: 6px 0 0; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
#ransomware-monitor-pane .ransom-monitor-actions { flex-wrap: wrap; gap: 10px; }
.ransom-range-label { color: var(--text-muted); font-size: .76rem; font-weight: 600; }
#ransomware-monitor-pane .ransom-monitor-actions select, #ransomware-monitor-pane .ransom-monitor-actions button { min-height: 40px; font-family: var(--font-ui); }
#ransomware-monitor-pane .ransom-monitor-status:not(:empty) { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
#ransomware-monitor-pane .ransom-monitor-status:empty { display: none; }
#ransomware-monitor-pane .ransom-source { font-weight: 600; }
#ransomware-monitor-pane .ransom-monitor-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
#ransomware-monitor-pane .ransom-monitor-tab { min-height: 38px; padding: 8px 12px; font: 600 .76rem var(--font-ui); border-radius: 7px; }
#ransomware-monitor-pane .ransom-monitor-tab i { color: var(--text-muted); }
#ransomware-monitor-pane .ransom-monitor-tab.active i { color: var(--accent); }
#ransom-monitor-content { min-width: 0; }
#ransomware-monitor-pane .ransom-metrics { gap: 10px; margin-bottom: 16px; }
#ransomware-monitor-pane .ransom-metric, #ransomware-monitor-pane .ransom-panel, #ransomware-monitor-pane .ransom-profile-head { background: rgba(255,255,255,.02); border-color: var(--border); border-radius: 9px; }
#ransomware-monitor-pane .ransom-metric { min-height: 90px; padding: 16px; }
#ransomware-monitor-pane .ransom-metric strong, #ransomware-monitor-pane .ransom-coverage-item strong { font-family: var(--font-mono); }
#ransomware-monitor-pane .ransom-metric span { font-size: .68rem; line-height: 1.4; }
#ransomware-monitor-pane .ransom-panel { padding: 18px; margin-bottom: 16px; min-width: 0; }
#ransomware-monitor-pane .ransom-grid { gap: 14px; margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
#ransomware-monitor-pane .ransom-panel h3 { margin-bottom: 15px; font-size: .9rem; line-height: 1.4; }
#ransomware-monitor-pane .ransom-workflow { background: rgba(255,255,255,.018); border-color: var(--border); padding: 18px; margin-bottom: 16px; }
#ransomware-monitor-pane .ransom-analyst-band { margin-bottom: 16px; }
#ransomware-monitor-pane .ransom-coverage-item, #ransomware-monitor-pane .ransom-source-row { background: rgba(255,255,255,.018); border-color: var(--border); }
#ransomware-monitor-pane .ransom-filters { padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.018); gap: 10px; margin-bottom: 16px; }
#ransomware-monitor-pane .ransom-filters input, #ransomware-monitor-pane .ransom-filters select, #ransomware-monitor-pane .ransom-watch-form input, #ransomware-monitor-pane .ransom-watch-form select { box-sizing: border-box; min-height: 40px; max-width: 100%; font: .78rem var(--font-ui); }
#ransomware-monitor-pane .ransom-filters input { flex: 1 1 260px; min-width: 0; font-family: var(--font-mono); }
#ransomware-monitor-pane .ransom-filters select { flex: 1 1 150px; min-width: 0; }
#ransomware-monitor-pane .ransom-filters button { min-height: 40px; }
#ransomware-monitor-pane .ransom-table-wrap { background: rgba(0,0,0,.12); border-color: var(--border); }
#ransomware-monitor-pane .ransom-table th { padding: 12px; letter-spacing: .04em; font-weight: 700; }
#ransomware-monitor-pane .ransom-table td { padding: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#ransomware-monitor-pane .ransom-table tbody tr:hover { background: rgba(255,255,255,.025); }
#ransomware-monitor-pane .ransom-table small, #ransomware-monitor-pane .mono-cell, #ransomware-monitor-pane code, #ransomware-monitor-pane .ransom-pre { font-family: var(--font-mono); overflow-wrap: anywhere; }
#ransomware-monitor-pane .ransom-link { font-family: var(--font-ui); font-weight: 600; }
#ransomware-monitor-pane .ransom-profile-head { padding: 18px; }
#ransomware-monitor-pane .ransom-profile-head h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
#ransomware-monitor-pane .ransom-empty, #ransomware-monitor-pane .ransom-loading { min-height: 90px; line-height: 1.5; }
.ransom-drawer { background: #0f141e; font-family: var(--font-ui); }
.ransom-drawer header, .ransom-drawer-body { padding: 20px; }
.ransom-drawer .ransom-detail-grid div, .ransom-drawer .ransom-message-list article, .ransom-drawer .ransom-detail-flag { background: rgba(255,255,255,.025); border-color: var(--border); }
.ransom-drawer .ransom-pre, .ransom-drawer a, .ransom-drawer code { font-family: var(--font-mono); overflow-wrap: anywhere; }
@media (max-width: 760px) {
    #ransomware-monitor-pane { padding: 8px 8px 24px; }
    #ransomware-monitor-pane .ransom-hero { padding: 18px; }
    .ransom-hero-main { align-items: flex-start; flex-direction: column; }
    #ransomware-monitor-pane .ransom-monitor-actions { flex-direction: row; align-items: center; }
    #ransomware-monitor-pane .ransom-monitor-tab { flex: 0 0 auto; }
    #ransomware-monitor-pane .ransom-monitor-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    #ransomware-monitor-pane .ransom-panel { padding: 14px; }
    #ransomware-monitor-pane .ransom-filters input, #ransomware-monitor-pane .ransom-filters select { flex-basis: 100%; }
    #ransomware-monitor-pane .ransom-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* OSV malicious packages workspace */
#osv-malicious-pane { font-family: var(--font-ui); min-width: 0; }
.osv-page-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }
.osv-page-header h1 { margin: 0; color: var(--text-main); font-size: 1.05rem; }
.osv-page-header p { margin: 7px 0 0; color: var(--text-muted); font-size: .8rem; line-height: 1.5; }
.osv-total { flex: none; display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.025); }
.osv-total strong { color: var(--text-main); font: 600 1.2rem var(--font-mono); }
.osv-total span { color: var(--text-muted); font-size: .67rem; text-transform: uppercase; font-weight: 700; }
#osv-malicious-pane .poc-search-bar { border: 1px solid var(--border); border-radius: 9px; }
#osv-search-input { font-family: var(--font-mono); }
#osv-malicious-pane .poc-results-container { min-width: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.018); }
#osv-malicious-pane .poc-table-head, #osv-malicious-pane .poc-result-row, #osv-malicious-pane .osv-package-row { min-width: 720px; }
#osv-malicious-pane .poc-result-row { overflow-wrap: anywhere; }
#osv-malicious-pane .poc-result-meta, #osv-malicious-pane .poc-cve-id { font-family: var(--font-mono); }
#osv-ecosystem-tabs .galaxy-subtab { font-family: var(--font-ui); display: inline-flex; align-items: center; }

/* Premium Malicious Package Rows */
.osv-package-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(18, 22, 34, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.osv-package-row:hover {
    background: rgba(255, 184, 0, 0.035);
    border-bottom-color: rgba(255, 184, 0, 0.15);
}

.osv-package-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.18s ease;
}

.osv-package-row:hover::before {
    background: var(--accent, #ffb800);
}

/* Column 1: Package & Identity */
.osv-col-pkg {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.osv-pkg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.osv-pkg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent, #ffb800);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.osv-pkg-title {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.osv-pkg-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Ecosystem pills */
.osv-eco-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: var(--font-ui, sans-serif);
}

.osv-eco-pill.eco-npm {
    background: rgba(203, 56, 55, 0.15);
    color: #ff6b69;
    border: 1px solid rgba(203, 56, 55, 0.3);
}

.osv-eco-pill.eco-pypi {
    background: rgba(75, 139, 190, 0.15);
    color: #6bb9f0;
    border: 1px solid rgba(75, 139, 190, 0.3);
}

.osv-eco-pill.eco-rubygems {
    background: rgba(233, 87, 63, 0.15);
    color: #ff7f6e;
    border: 1px solid rgba(233, 87, 63, 0.3);
}

.osv-eco-pill.eco-crates {
    background: rgba(222, 165, 132, 0.15);
    color: #f5bfa2;
    border: 1px solid rgba(222, 165, 132, 0.3);
}

.osv-eco-pill.eco-go {
    background: rgba(0, 172, 215, 0.15);
    color: #38c8ee;
    border: 1px solid rgba(0, 172, 215, 0.3);
}

.osv-eco-pill.eco-maven {
    background: rgba(199, 26, 54, 0.15);
    color: #f75d74;
    border: 1px solid rgba(199, 26, 54, 0.3);
}

.osv-eco-pill.eco-nuget {
    background: rgba(0, 120, 212, 0.15);
    color: #4da3ff;
    border: 1px solid rgba(0, 120, 212, 0.3);
}

.osv-eco-pill.eco-packagist {
    background: rgba(242, 141, 26, 0.15);
    color: #ffaa4d;
    border: 1px solid rgba(242, 141, 26, 0.3);
}

.osv-eco-pill.eco-generic {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ID pill */
.osv-id-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.15s ease;
}

.osv-id-pill:hover {
    color: var(--accent, #ffb800);
    border-color: rgba(255, 184, 0, 0.3);
    background: rgba(255, 184, 0, 0.08);
}

/* Column 2: Details */
.osv-col-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.osv-summary-desc {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
    word-break: break-word;
}

.osv-details-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.osv-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
}

.osv-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent, #ffb800);
    background: rgba(255, 184, 0, 0.06);
    border: 1px solid rgba(255, 184, 0, 0.2);
    padding: 2px 9px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.osv-action-chip:hover {
    background: rgba(255, 184, 0, 0.15);
    border-color: rgba(255, 184, 0, 0.4);
    color: #fff;
}

/* Column 3: Disclosed / Modified */
.osv-col-time {
    width: 150px;
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.osv-date-primary {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono, monospace);
}

.osv-date-primary i {
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
}

.osv-date-secondary {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    font-family: var(--font-mono, monospace);
    display: flex;
    align-items: center;
    gap: 6px;
}

.osv-date-rel {
    color: #ffb800;
    font-weight: 500;
}

@media (max-width: 650px) { .osv-page-header { align-items: flex-start; flex-direction: column; padding: 18px; } .osv-total { width: 100%; box-sizing: border-box; } }

/* Vulnerability Intelligence workspace */
#poc-index-pane { padding: 8px 12px 28px; font-family: var(--font-ui); min-width: 0; }
#poc-index-pane .poc-hero { padding: 22px 24px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); gap: 20px; }
#poc-index-pane .poc-hero-title h1 { margin: 0; color: var(--text-main); background: none; -webkit-text-fill-color: currentColor; font-size: 1.05rem; font-weight: 700; }
#poc-index-pane .poc-hero-title p { margin-top: 7px; font-size: .8rem; line-height: 1.5; }
#poc-index-pane .poc-hero-stats { gap: 10px; flex-wrap: wrap; }
#poc-index-pane .stat-box { min-width: 116px; padding: 12px 15px; align-items: flex-start; background: rgba(255,255,255,.02); border-color: var(--border); border-radius: 8px; }
#poc-index-pane .stat-box span:first-child { font-size: 1.15rem; color: var(--text-main); }
#poc-index-pane .stat-box.is-danger span:first-child { color: var(--danger); }
#poc-index-pane .stat-box span:last-child { letter-spacing: .04em; line-height: 1.4; }
#poc-index-pane .poc-search-bar { margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.018); }
#poc-index-pane .poc-search-bar input { box-sizing: border-box; min-width: 0; padding: 12px 16px 12px 44px; border-width: 1px; font-size: .85rem; }
#poc-index-pane .poc-filters { gap: 10px; }
#poc-index-pane .filter-chip { font-family: var(--font-ui); font-weight: 600; }
#poc-index-pane .poc-results-container { margin-top: 16px; padding: 20px; min-height: 0; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.018); }
#poc-index-pane .poc-trending-header h3, #poc-index-pane .poc-results-header h3 { color: var(--text-main); font-size: .9rem; letter-spacing: 0; text-transform: none; }
#poc-index-pane #poc-trending-section > .poc-table-head, #poc-index-pane .poc-trend-row { grid-template-columns: 68px minmax(165px, 220px) minmax(0, 1fr); gap: 14px; }
#poc-index-pane #poc-trending-section > .poc-table-head { padding: 12px 10px; letter-spacing: .04em; }
#poc-index-pane .poc-trend-row { padding: 12px 10px; line-height: 1.45; }
#poc-index-pane .poc-trend-row .col-name { min-width: 0; font-family: var(--font-mono); overflow-wrap: anywhere; }
#poc-index-pane .poc-trend-row .col-desc { display: -webkit-box; overflow-wrap: anywhere; }
#poc-index-pane .poc-result-row { overflow-wrap: anywhere; }
@media (max-width: 700px) {
    #poc-index-pane { padding: 8px 8px 24px; }
    #poc-index-pane .poc-hero, #poc-index-pane .poc-results-container { padding: 18px; }
    #poc-index-pane .poc-hero-stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #poc-index-pane .stat-box { min-width: 0; padding: 10px; }
    #poc-index-pane .filter-group { flex-wrap: wrap; }
    #poc-index-pane .filter-sep { display: none; }
    #poc-index-pane #poc-trending-section > .poc-table-head { display: none; }
    #poc-index-pane .poc-trend-row { grid-template-columns: 55px minmax(0, 1fr); gap: 6px 12px; }
    #poc-index-pane .poc-trend-row .col-desc { grid-column: 2; }
    #poc-index-pane #poc-search-results-section > .poc-table-head { overflow: hidden; }
}

#poc-index-pane .poc-view-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
#poc-index-pane .poc-view-tabs button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.02); color: var(--text-muted); font: 600 .78rem var(--font-ui); cursor: pointer; }
#poc-index-pane .poc-view-tabs button:hover { color: var(--text-main); background: rgba(255,255,255,.05); }
#poc-index-pane .poc-view-tabs button.active { color: var(--accent); border-color: rgba(255,204,0,.4); background: rgba(255,204,0,.08); }
#poc-index-pane .poc-view-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#poc-index-pane .poc-filter-panel { margin-top: 12px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.018); }
#poc-index-pane .poc-view-tabs + .poc-filter-panel + .poc-results-container { margin-top: 12px; }

/* =========================================================================
   Threat Assessment source panel
   ========================================================================= */
.threat-assessment-source { min-width: 0; }
.threat-assessment-body { min-width: 0; }
.threat-assessment-body .threatAssessment-search-card { width: 100%; box-sizing: border-box; margin: 0; }
.threat-assessment-body .ipiv-mono { overflow-wrap: anywhere; }
.threatAssessment-source-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 1.25fr);
    gap: 8px;
    margin: 0 0 20px;
}
.threatAssessment-summary-stat {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}
.threatAssessment-summary-stat strong { color: #f8fafc; font: 700 20px/1.1 var(--font-ui); }
.threatAssessment-summary-stat span { color: #91a2b8; font-size: 11px; }
.threatAssessment-pivot-stat { flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px; }
.threatAssessment-pivot-stat i { color: #facc15; }
.threatAssessment-pivot-stat span { font-size: 12px; color: #d4dce8; }
.threatAssessment-source-details { grid-column: 1 / -1; padding: 4px 2px; font-size: 11px; color: #93a4b9; }
.threatAssessment-source-details summary { cursor: pointer; width: fit-content; color: #b9c8d9; }
.threatAssessment-source-details summary span { color: #708298; margin-left: 6px; }
.threatAssessment-source-details > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 2px;
}
.threatAssessment-source-tag { padding: 4px 7px; background: rgba(255,255,255,.035); border: 1px solid rgba(148,163,184,.12); border-radius: 6px; }
.threatAssessment-source-tag b { font-weight: 500; color: #8496aa; }
.threatAssessment-source-tag[data-state="available"] b { color: #86d9b1; }
.threatAssessment-source-tag[data-state="contributed"] b { color: #86d9b1; }
.threatAssessment-source-tag[data-state="unassessed"] b { color: #e3c46b; }
.threatAssessment-source-tag[data-state="error"] b { color: #e58b8b; }
.threatAssessment-summary-stat strong small { font-size: .6em; font-weight: 500; color: #8496aa; }
.threatAssessment-section-count { margin-left: 6px; padding: 0 6px; border-radius: 8px; background: rgba(255,204,0,.12); color: #ffcc00; font-size: 10px; }
.threatAssessment-source-findings { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 8px; }
.threatAssessment-source-finding {
    display: grid;
    grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
    gap: 8px;
    padding: 5px 8px;
    font-size: 11px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(148,163,184,.1);
    border-radius: 6px;
}
.threatAssessment-source-finding strong { color: #d4dce8; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threatAssessment-source-finding span { color: #a9b8ca; overflow-wrap: anywhere; }
.threatAssessment-search-card {
    background: linear-gradient(160deg, #0c1422, #0a101c 72%);
    border: 1px solid rgba(148, 163, 184, 0.17);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
    border-radius: 12px;
    padding: clamp(16px, 2vw, 26px);
    margin: 0;
}

.threatAssessment-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    margin-bottom: 18px;
}

.threatAssessment-search-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.threatAssessment-brand-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.015em;
}

.threatAssessment-brand-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

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

.threatAssessment-roles-wrap {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.threatAssessment-btn-action {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.threatAssessment-btn-action:hover {
    background: #1e293b;
    border-color: rgba(255, 204, 0, 0.4);
    color: #FFCC00;
}

.threatAssessment-triage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.threatAssessment-triage-grid > .ipiv-triage-card { min-width: 0; padding: 17px 19px; background: #101927; border-color: rgba(148,163,184,.13); }
.threatAssessment-triage-grid > .ipiv-triage-card:last-child { grid-column: 1 / -1; }
.threatAssessment-triage-grid .ipiv-triage-header { padding-bottom: 12px; margin-bottom: 4px; }
.threatAssessment-triage-grid .ipiv-triage-body { min-width: 0; gap: 10px; }
.threatAssessment-triage-grid .ipiv-triage-body > details { border-top: 1px solid rgba(148,163,184,.12); padding-top: 10px; }
.threatAssessment-triage-grid .ipiv-triage-body > details > summary { font-size: 12px; font-weight: 600; padding: 3px 0; }
.threatAssessment-signal-list, .threatAssessment-connection-rows, .threatAssessment-actor-evidence { display: grid; gap: 5px; margin-top: 9px; }
.threatAssessment-signal, .threatAssessment-actor-evidence > div { padding: 8px 10px; border-radius: 6px; background: rgba(148,163,184,.06); color: #bacadd; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.threatAssessment-actor-evidence > div { display: grid; grid-template-columns: minmax(65px, 90px) minmax(0, 1fr); gap: 8px; }
.threatAssessment-actor-evidence strong { color: #e2e8f0; text-transform: capitalize; }
.threatAssessment-connection-group { border: 1px solid rgba(148,163,184,.16); border-radius: 7px; overflow: hidden; }
.threatAssessment-connection-group + .threatAssessment-connection-group { margin-top: 6px; }
.threatAssessment-connection-group > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; font-size: 12px; color: #dce7f2; }
.threatAssessment-connection-group > summary span { color: #8ca2ba; }
.threatAssessment-connection-rows { max-height: 350px; overflow: auto; padding: 0 9px 9px; }
.threatAssessment-connection-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px; gap: 10px; align-items: center; padding: 7px 6px; border-top: 1px solid rgba(148,163,184,.1); color: #91a8be; font-size: 11px; }
.threatAssessment-connection-row code { color: #cfe4f7; overflow-wrap: anywhere; white-space: normal; }
.threatAssessment-connection-row small { overflow-wrap: anywhere; }
.threatAssessment-connection-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 3px; }
.threatAssessment-connection-group + .threatAssessment-connection-group { margin-top: 0; }
.threatAssessment-connection-group[open] { grid-column: 1 / -1; }
.threatAssessment-triage-grid .ipiv-triage-body .threatAssessment-connection-group > summary {
    display: flex; align-items: center; gap: 10px; min-height: 48px; width: 100%; padding: 11px 13px;
    font-size: 12px; list-style: none; box-sizing: border-box;
}
.threatAssessment-connection-group > summary::-webkit-details-marker { display: none; }
.threatAssessment-connection-group > summary:hover, .threatAssessment-connection-group[open] > summary { background: rgba(148,163,184,.07); }
.threatAssessment-connection-group > summary .threatAssessment-connection-type { color: #e4edf6; font-size: 12px; font-weight: 700; margin-right: auto; }
.threatAssessment-connection-group > summary i { color: #8ea3b9; font-size: 10px; transition: transform .2s; }
.threatAssessment-connection-group[open] > summary i { transform: rotate(180deg); }
.threatAssessment-connection-help { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 8px; color: #8195aa; }
.threatAssessment-ai-attribution { line-height: 1.55; }
.threatAssessment-ai-review { margin-top: 14px; padding: 13px 15px; border: 1px solid rgba(148,163,184,.14); border-radius: 8px; background: rgba(148,163,184,.035); }
.threatAssessment-ai-review p { margin: 7px 0 0; font-size: 12px; color: #bccbdc; line-height: 1.65; }
.threatAssessment-executive-prose { max-width: 110ch; font-size: 14px; line-height: 1.7; color: #d6e2ef; }
.threatAssessment-executive-prose p { margin: 0 0 14px; }
.ipiv-source-caveat { font-size: 11px; line-height: 1.5; color: #fbbf24; background: rgba(251,191,36,.07); border-left: 2px solid rgba(251,191,36,.55); border-radius: 3px; padding: 7px 9px; }
.threatAssessment-legacy-summary { border-top: 1px solid var(--border); padding-top: 9px; color: #94a3b8; font-size: 12px; }
.threatAssessment-legacy-summary summary { cursor: pointer; }
.threatAssessment-ai-attribution .threatAssessment-summary-card { margin-top: 8px; }
.threatAssessment-osint-references { padding-left: 18px; line-height: 1.7; }
.threatAssessment-osint-references a { color: #8dd7ff; overflow-wrap: anywhere; }
.threatAssessment-osint-references span { color: #93a5ba; }
.threatAssessment-ai-actions { margin-top: 18px; }
.threatAssessment-progress-track { height: 7px; border-radius: 99px; background: #243244; overflow: hidden; margin: 12px 0; }
.threatAssessment-progress-track > div { height: 100%; background: #facc15; transition: width .3s ease; }
@media (max-width: 700px) { .threatAssessment-connection-row, .threatAssessment-connection-groups { grid-template-columns: 1fr; gap: 2px; } }
.threatAssessment-indicator-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.threatAssessment-indicator { min-width: 0; font-weight: 700; color: #facc15; font-size: 13px; overflow-wrap: anywhere; }
.threatAssessment-section-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7f91a8; margin-top: 4px; }
.threatAssessment-roles-wrap { margin-top: 2px; }
.threatAssessment-kind-list { display: flex; flex-wrap: wrap; gap: 7px; }
.threatAssessment-kind-chip { padding: 7px 10px; border: 1px solid rgba(148,163,184,.15); border-radius: 7px; background: #0c1421; color: #aebed0; font-size: 11px; }
.threatAssessment-kind-chip strong { color: #f8fafc; font-size: 14px; margin-right: 3px; }
.threatAssessment-empty-note, .threatAssessment-actor-caveat { color: #99aabe; font-size: 12px; line-height: 1.55; margin: 0; }
.threatAssessment-relationship-note { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 8px; border-top: 1px solid rgba(148,163,184,.1); font-size: 11px; }
.threatAssessment-relationship-note strong { color: #d6e0eb; }
.threatAssessment-relationship-note span { color: #96a8ba; overflow-wrap: anywhere; }
.threatAssessment-evidence-details { font-size: 11px; color: #93a5ba; }
.threatAssessment-evidence-details summary { width: fit-content; cursor: pointer; color: #bbcadb; }
.threatAssessment-evidence-details summary span { color: #facc15; margin-left: 5px; }
.threatAssessment-evidence-values { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 9px; }
.threatAssessment-evidence-values span { max-width: 100%; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(148,163,184,.13); background: rgba(255,255,255,.03); overflow-wrap: anywhere; }

.threatAssessment-telemetry-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.threatAssessment-telemetry-pill {
    background: rgba(56, 189, 248, .06);
    border: 1px solid rgba(56, 189, 248, .18);
    color: #a9d7ed;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 6px;
}

.threatAssessment-submeta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.threatAssessment-actor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.threatAssessment-actor-name {
    font-size: 0.86rem;
    color: #f8fafc;
}

.threatAssessment-actor-country {
    font-size: 0.72rem;
    color: #94a3b8;
}

.threatAssessment-statement {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 8px 0 0;
    max-width: 95ch;
}

.threatAssessment-tech-list {
    font-size: 0.7rem;
    color: #cbd5e1;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.threatAssessment-playbook-section {
    background: transparent;
    border-top: 1px solid rgba(148, 163, 184, .13);
    padding: 19px 0 0;
}

.threatAssessment-playbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.threatAssessment-playbook-header strong { color: #f2f5fa; font-size: 14px; }
.threatAssessment-playbook-header strong span { color: #facc15; margin-left: 3px; }
.threatAssessment-playbook-note { font-size: 11px; color: #899cb1; }

.threatAssessment-playbook-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.threatAssessment-action { min-width: 0; background: #101927; border: 1px solid rgba(148,163,184,.14); border-radius: 9px; overflow: hidden; }
.threatAssessment-action[open] { border-color: rgba(148,163,184,.26); }
.threatAssessment-action > summary { display: flex; align-items: center; gap: 11px; min-height: 51px; padding: 11px 14px; cursor: pointer; list-style: none; }
.threatAssessment-action > summary::-webkit-details-marker { display: none; }
.threatAssessment-action-index { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(250,204,21,.1); color: #facc15; font: 700 11px var(--font-mono); }
.threatAssessment-action-title { min-width: 0; flex: 1; color: #e9eff7; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.threatAssessment-action-priority { flex: none; color: #b6c8dc; border: 1px solid rgba(148,163,184,.18); border-radius: 5px; padding: 4px 7px; font-size: 10px; }
.threatAssessment-action-chevron { color: #91a2b8; font-size: 10px; transition: transform .15s ease; }
.threatAssessment-action[open] .threatAssessment-action-chevron { transform: rotate(180deg); }
.threatAssessment-action-content { border-top: 1px solid rgba(148,163,184,.1); padding: 12px 15px 15px 47px; }
.threatAssessment-action-content p { margin: 0; color: #aebed0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.threatAssessment-action-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.threatAssessment-action-targets > span { font-size: 10px; color: #7e92aa; text-transform: uppercase; letter-spacing: .05em; }
.threatAssessment-action-targets code { max-width: min(100%, 450px); padding: 5px 7px; border: 1px solid rgba(148,163,184,.17); border-radius: 5px; background: #0c1421; color: #c5d2e2; font: 10px var(--font-mono); overflow-wrap: anywhere; }
.threatAssessment-action.red .threatAssessment-action-index { background: rgba(248,113,113,.11); color: #fca5a5; }
.threatAssessment-action.amber .threatAssessment-action-index { background: rgba(251,191,36,.11); color: #fcd34d; }

/* Threat Assessment AI Executive Summary Section */
.threatAssessment-ai-summary-section {
    background: linear-gradient(168deg, rgba(16, 25, 41, 0.95), rgba(10, 17, 28, 0.98));
    border: 1px solid rgba(255, 204, 0, 0.24);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    border-radius: 11px;
    padding: 18px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.threatAssessment-ai-summary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ffcc00, #f59e0b);
}
.threatAssessment-ai-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 14px;
}
.threatAssessment-ai-summary-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}
.threatAssessment-ai-summary-title i {
    color: #ffcc00;
    font-size: 1.05rem;
}
.threatAssessment-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.28);
    color: #facc15;
}
.threatAssessment-ai-badge.ready {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.28);
    color: #6ee7b7;
}
.threatAssessment-ai-summary-body {
    font-size: 12.5px;
    line-height: 1.7;
    color: #cbd5e1;
}
.threatAssessment-ai-summary-body h2,
.threatAssessment-ai-summary-body h3,
.threatAssessment-ai-summary-body h4 {
    color: #facc15;
    font-size: 13px;
    font-weight: 700;
    margin: 16px 0 6px 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.threatAssessment-ai-summary-body h2:first-child,
.threatAssessment-ai-summary-body h3:first-child,
.threatAssessment-ai-summary-body h4:first-child {
    margin-top: 0;
}
.threatAssessment-ai-summary-body p {
    margin: 0 0 10px 0;
}
.threatAssessment-ai-summary-body ul,
.threatAssessment-ai-summary-body ol {
    margin: 0 0 12px 0;
    padding-left: 22px;
}
.threatAssessment-ai-summary-body li {
    margin-bottom: 5px;
}
.threatAssessment-ai-summary-body strong {
    color: #f8fafc;
    font-weight: 650;
}
.threatAssessment-ai-summary-body code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11.5px;
    color: #93c5fd;
    font-family: var(--font-mono);
}
.threatAssessment-ai-summary-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.threatAssessment-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.threatAssessment-btn-action:hover {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.35);
    color: #ffcc00;
}
.threatAssessment-summary-cards-container {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 4px;
}
.threatAssessment-summary-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 9px;
    padding: 13px 16px;
    transition: border-color 0.15s ease;
}
.threatAssessment-summary-card:hover {
    border-color: rgba(255, 204, 0, 0.24);
}
.threatAssessment-summary-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    margin-bottom: 10px;
}
.threatAssessment-summary-card-header i {
    font-size: 13px;
}
.threatAssessment-summary-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #cbd5e1;
}
.threatAssessment-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.threatAssessment-summary-bullet-icon {
    color: #ffcc00;
    font-size: 10px;
    margin-top: 4px;
    flex-shrink: 0;
    opacity: 0.85;
}
.threatAssessment-summary-item-text {
    flex: 1;
    word-break: break-word;
}
.threatAssessment-summary-item-text strong {
    color: #f8fafc;
    font-weight: 650;
}
.threatAssessment-defanged-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 4px;
    padding: 1px 6px;
    margin: 1px 2px;
    user-select: all;
}
.threatAssessment-inline-code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #93c5fd;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
    margin: 0 2px;
}
.threatAssessment-verdict-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    margin: 0 3px;
    text-transform: uppercase;
}
.threatAssessment-verdict-pill.malicious {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.36);
    color: #f87171;
}
.threatAssessment-verdict-pill.suspicious {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.36);
    color: #fbbf24;
}
.threatAssessment-verdict-pill.shared,
.threatAssessment-verdict-pill.sinkhole {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.threatAssessment-verdict-pill.benign {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.threatAssessment-verdict-pill.high {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}
.threatAssessment-verdict-pill.moderate {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fcd34d;
}
.threatAssessment-verdict-pill.low {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #cbd5e1;
}
@media (max-width: 900px) {
    .threatAssessment-source-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .threatAssessment-triage-grid { grid-template-columns: minmax(0, 1fr); }
    .threatAssessment-triage-grid > .ipiv-triage-card:last-child { grid-column: auto; }
}
@media (max-width: 620px) {
    .threatAssessment-source-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .threatAssessment-search-header { align-items: flex-start; }
    .threatAssessment-action > summary { flex-wrap: wrap; }
    .threatAssessment-action-priority { order: 3; margin-left: 33px; }
    .threatAssessment-action-content { padding-left: 14px; }
}
