.pulse-grid {
    display: grid;
    gap: 12px;
}

.threatmap-hero {
    margin-bottom: 20px;
}

.threatmap-hero-panel {
    background: var(--card);
    border: 1px solid var(--border);
}

.threatmap-metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.threatmap-stage {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--border);
}

.threatmap-stage h2,
.threatmap-stage .meta {
    color: var(--ink);
}

.threatmap-stage .eyebrow {
    color: var(--accent);
}

.threatmap-stage .chip {
    background: var(--accent-glow);
    border-color: rgba(212, 255, 0, 0.4);
    color: var(--accent);
}

.threatmap-stage-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.threatmap-canvas {
    position: relative;
    min-height: 420px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 50% 40%, rgba(212, 255, 0, 0.22), rgba(3, 3, 4, 0) 60%), #050506;
}

.threatmap-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.6;
}

.threatmap-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    left: 10%;
    top: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 255, 0, 0.35), rgba(212, 255, 0, 0) 70%);
    filter: blur(12px);
    opacity: 0.9;
}

.threatmap-blips {
    position: absolute;
    inset: 0;
}

.threatmap-blip {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(212, 255, 0, 0.45);
    left: var(--x);
    top: var(--y);
    animation: threatmap-pulse 3.4s ease-out infinite;
}

.threatmap-controls {
    position: absolute;
    left: 20px;
    top: 20px;
    display: grid;
    gap: 10px;
}

.map-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(212, 255, 0, 0.08);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.map-btn:hover {
    background: rgba(212, 255, 0, 0.18);
}

.threatmap-hud {
    position: absolute;
    right: 20px;
    top: 20px;
    display: grid;
    gap: 12px;
    max-width: 240px;
}

.hud-card {
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 14px;
}

.hud-card .metric-value {
    color: var(--ink);
    font-size: 1.2rem;
}

.threatmap-stage-footer {
    margin-top: 18px;
}

.threatmap-footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.threatmap-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.threatmap-sparkline {
    height: 160px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(212, 255, 0, 0.2), rgba(212, 255, 0, 0));
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.threatmap-sparkline span {
    position: absolute;
    inset: 20% 6%;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(112, 0, 255, 0.2), rgba(212, 255, 0, 0.4), rgba(255, 176, 0, 0.2));
    mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    animation: threatmap-flow 8s ease-in-out infinite;
}

.threatmap-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-radius: 0;
    background: rgba(212, 255, 0, 0.05);
    border: 1px solid var(--border);
    margin: 16px 0 24px;
}

.threatmap-filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.9);
    color: var(--ink);
    font-family: var(--mono);
}

.threatmap-region-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.region-card {
    border-radius: 0;
    overflow: hidden;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid var(--border);
}

.region-header {
    padding: 12px 16px;
    background: linear-gradient(120deg, rgba(212, 255, 0, 0.7), rgba(112, 0, 255, 0.6));
    color: #050505;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.region-body {
    padding: 16px;
}

.threatmap-top-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.threatmap-legend-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legend-card {
    border-radius: 0;
    padding: 16px;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.legend-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.legend-card.waa .legend-pill {
    background: #2db36f;
}

.legend-card.dba .legend-pill {
    background: #e63946;
}

.legend-card.bca .legend-pill {
    background: #f3722c;
}

.legend-card.nia .legend-pill {
    background: #577590;
}

.legend-card.esa .legend-pill {
    background: #9d4edd;
}

.legend-card.iia .legend-pill {
    background: #277da1;
}

@keyframes threatmap-pulse {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(212, 255, 0, 0.45);
    }
    60% {
        transform: scale(1.6);
        box-shadow: 0 0 0 14px rgba(212, 255, 0, 0);
    }
    100% {
        transform: scale(1.6);
        box-shadow: 0 0 0 20px rgba(212, 255, 0, 0);
    }
}

@keyframes threatmap-flow {
    0% {
        transform: translateX(-12%);
        opacity: 0.7;
    }
    50% {
        transform: translateX(6%);
        opacity: 1;
    }
    100% {
        transform: translateX(-12%);
        opacity: 0.7;
    }
}

@media (max-width: 960px) {
    .threatmap-hud {
        position: static;
        max-width: none;
        margin: 20px;
    }

    .threatmap-controls {
        position: static;
        grid-auto-flow: column;
        justify-content: start;
        margin: 16px;
    }

    .threatmap-canvas {
        min-height: 320px;
    }
}

.pulse-card {
    background: rgba(10, 10, 12, 0.92);
    border-radius: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.pulse-title {
    font-weight: 600;
    margin: 0 0 4px;
}

.pulse-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.report-preview {
    display: grid;
    gap: 12px;
}

.exec-narrative strong {
    color: var(--accent);
    font-weight: 700;
}

.threatmap-stack {
    display: grid;
    gap: 24px;
    margin: 24px 0 48px;
}

.threatmap-stack.threatmap-seamless {
    margin-top: 12px;
}

.threatmap-frame-wrap {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #050506;
    box-shadow: var(--shadow);
}

.threatmap-frame-wrap.live {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.threatmap-frame-wrap.analytics {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.threatmap-frame {
    width: 100%;
    border: 0;
    display: block;
    background: transparent;
}

.threatmap-frame.map {
    height: 74vh;
    min-height: 560px;
}

.threatmap-frame.live-stats {
    height: 62vh;
    min-height: 520px;
    background: transparent;
}

.threatmap-frame.live-most {
    height: 52vh;
    min-height: 480px;
    background: transparent;
}

.threatmap-frame.analytics {
    height: 1800px;
    min-height: 1200px;
}

.report-line {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10, 127, 115, 0.2), rgba(42, 79, 110, 0.2));
}

.report-line.short {
    width: 60%;
}

.pipeline {
    display: grid;
    gap: 16px;
}

.pipeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.pipeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(10, 127, 115, 0.15);
}

.pipeline-title {
    margin: 0;
    font-weight: 600;
}

.pipeline-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.matrix-preview {
    display: grid;
    gap: 12px;
}

.matrix-row {
    height: 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(42, 79, 110, 0.2), rgba(213, 107, 77, 0.2));
}

.timeline {
    display: grid;
    gap: 18px;
    position: relative;
    padding-left: 4px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(212, 255, 0, 0.2), #1f1f22 35%, #1f1f22 65%, rgba(212, 255, 0, 0.2));
    z-index: 0;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    position: relative;
}

.timeline-index {
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--accent-3);
    position: relative;
    z-index: 1;
    background: #09090b;
    padding: 2px 6px;
    border-radius: 10px;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a2a2f;
    box-shadow: 0 0 6px rgba(212, 255, 0, 0.1);
    z-index: 1;
}

.timeline-step.warm::before {
    background: rgba(255, 149, 0, 0.75);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.4);
}

.timeline-step.hot::before {
    background: rgba(255, 0, 60, 0.8);
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.5);
}

.timeline-title {
    margin: 0;
    font-weight: 600;
}

.timeline-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-panel .pulse-grid {
    margin-top: 16px;
}

.intel-stack {
    display: grid;
    gap: 28px;
}

.intel-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.intel-stack-single {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.intel-table-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.intel-table-header .chip-row {
    justify-content: flex-end;
}

.split-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.stacked-splits {
    display: grid;
    gap: 28px;
}

.stacked-splits .split-grid + .split-grid {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.builder-card {
    display: grid;
    gap: 16px;
}

.builder-form {
    display: grid;
    gap: 16px;
}

.builder-form input,
.builder-form select,
.builder-form textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: #111113;
    color: var(--ink);
    font-family: var(--mono);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.builder-form input::placeholder,
.builder-form textarea::placeholder {
    color: var(--muted);
}

.builder-form input:focus,
.builder-form select:focus,
.builder-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 255, 0, 0.12);
}

.builder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.builder-label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.rule-list {
    display: grid;
    gap: 12px;
}

.rule-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.rule-row select,
.rule-row input,
.rule-row textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: #111113;
    color: var(--ink);
    font-family: var(--mono);
    width: 100%;
}

.rule-value {
    display: flex;
}

.btn.small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.builder-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.builder-meta textarea {
    min-height: 72px;
    resize: vertical;
}

.builder-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.saved-query {
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.saved-query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.saved-query-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    margin: 0;
}

.inline-form button {
    cursor: pointer;
}

.hunt-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.split-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
}

.split-panel + .split-panel {
    border-left: 1px solid var(--border);
    padding-left: 24px;
}

.intel-summary {
    margin-top: 16px;
}

.bar-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.bar-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    align-items: center;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(23, 33, 43, 0.08);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}

.bar-fill.severity-medium {
    background: #d4ff00;
}

.bar-fill.severity-high {
    background: #ff9500;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.35);
}

.bar-fill.severity-critical {
    background: #ff003c;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.4);
}

.bar-fill-new {
    background: #00f3ff !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.35);
}

.bar-fill-high {
    background: #ff003c !important;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.35);
}

.bar-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.source-row,
.feed-row,
.watch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feed-row {
    align-items: flex-start;
}

.watch-row {
    align-items: center;
}

.watch-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.watch-value {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-meta {
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.watch-row .pill {
    white-space: nowrap;
    flex-shrink: 0;
}

.mitre-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
}

.chip-row.nowrap {
    flex-wrap: nowrap;
    flex: 1 1 auto;
}

.chip-row.nowrap .chip {
    white-space: nowrap;
}

.subheading {
    margin: 18px 0 10px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.alert-table {
    table-layout: fixed;
}

.alert-table .col-title {
    width: 40%;
}

.alert-table td.col-title {
    max-width: 0;
}

.alert-table td.col-title a {
    display: inline-block;
    max-width: 100%;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

.alert-meta-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert-actions {
    display: grid;
    gap: 12px;
}

.alert-actions label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.alert-actions select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: #111113;
    color: var(--ink);
    font-family: var(--mono);
}

.alert-actions input[type="text"] {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: #111113;
    color: var(--ink);
    font-family: var(--mono);
}

.alert-actions select:focus,
.alert-actions input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 255, 0, 0.12);
}

.alert-actions .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.alert-actions .checkbox input {
    margin: 0;
}

.alert-actions .action-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.alert-actions .action-row .btn {
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.1;
}

.baseline-card {
    display: grid;
    gap: 16px;
}

.baseline-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.baseline-chart {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    background: #111113;
}

.baseline-svg {
    width: 100%;
    height: auto;
    display: block;
}

.baseline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 16px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.legend-swatch.mean-line {
    background: var(--accent-3);
    border: 1px dashed rgba(42, 79, 110, 0.7);
}

.legend-swatch.band-fill {
    background: rgba(42, 79, 110, 0.2);
}

.legend-swatch.alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c53626;
}

.alert-summary {
    display: grid;
    gap: 16px;
}

.evidence-list {
    display: grid;
    gap: 16px;
}

.evidence-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.evidence-title {
    margin: 0 0 6px;
    font-weight: 600;
}

.evidence-item a {
    word-break: break-all;
}

.evidence-snippet {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.evidence-snapshot {
    display: grid;
    gap: 8px;
    align-content: start;
}

.evidence-snapshot img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.evidence-caption {
    margin: 0;
}

.evidence-item.telemetry {
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.04);
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 16px;
    margin-top: 10px;
    min-width: 0;
}

.telemetry-kv {
    font-size: 0.92rem;
    min-width: 0;
}

.telemetry-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.telemetry-value {
    display: block;
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    font-family: var(--mono);
}

.telemetry-json {
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow: auto;
}

.kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 24px;
}

.kpi-card {
    background: #09090b;
    border-radius: 0;
    padding: 16px;
    border: 1px solid #1f1f22;
    box-shadow: none;
    display: grid;
    gap: 8px;
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a1a1aa;
    margin: 0;
    font-weight: 600;
}

.kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    color: #ededed;
}

.kpi-sub {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.85rem;
}

.mono {
    font-family: var(--mono);
    font-size: 0.85rem;
}

.kpi-trend {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.kpi-trend.trend-positive {
    color: #d4ff00;
}

.kpi-trend.trend-negative {
    color: #ff4d4f;
}

.kpi-trend.trend-neutral {
    color: var(--muted);
}

.risk-meter {
    display: grid;
    gap: 6px;
}

.risk-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(23, 33, 43, 0.1);
    overflow: hidden;
}

.risk-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.risk-explain {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.risk-explain-body {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--ink);
}

.risk-explain-body .pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-right: 6px;
}

.risk-explain-body.is-open,
.risk-explain.is-open .risk-explain-body {
    display: block;
}

.chart-shell {
    height: 260px;
}

.chart-shell canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-shell.tall {
    height: 320px;
}

.chart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chart-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 120ms ease;
}

.chart-filter-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.chart-filter-btn:hover {
    border-color: rgba(212, 255, 0, 0.5);
    color: #d4ff00;
}

.filter-menu {
    position: fixed;
    z-index: 10;
    background: rgba(8, 8, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 6px;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.filter-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.filter-menu button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--ink);
    padding: 6px 8px;
    text-align: left;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.filter-menu button:hover {
    border-color: rgba(212, 255, 0, 0.5);
    color: #d4ff00;
}

.filter-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.custom-range {
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
}

.custom-range label {
    display: grid;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--muted);
}

.custom-range input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink);
    padding: 6px 8px;
    border-radius: 6px;
}

.custom-range.shake {
    animation: chart-shake 0.2s ease 0s 2;
}

@keyframes chart-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.chart-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.chart-card {
    display: grid;
    gap: 12px;
}

.chart-card .card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.chart-card.span-2 {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .chart-card.span-2 {
        grid-column: span 1;
    }
}

.graph-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    margin-top: 24px;
}

.graph-layout.full {
    grid-template-columns: 1fr;
}

.sandbox-row {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 24px;
    align-items: start;
}

.thread-row {
    margin-top: 24px;
}

.graph-card {
    display: grid;
    gap: 16px;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.graph-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.graph-controls .control-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.graph-controls .controls-main {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
}

.graph-controls .chips {
    justify-content: flex-start;
}

.graph-controls .control-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.edge-toggle .chip {
    padding: 6px 10px;
}

.graph-controls input[type="range"] {
    width: 140px;
}

.graph-controls select,
.graph-controls input[type="datetime-local"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink);
    padding: 6px 8px;
    border-radius: 8px;
}

.graph-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.graph-actions .btn.small {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.custom-time {
    display: flex;
    gap: 6px;
    align-items: center;
}

.custom-time[hidden] {
    display: none !important;
}

.replay-row,
.search-row {
    justify-content: flex-start;
}

.control-row input[type="text"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink);
    padding: 6px 8px;
    border-radius: 8px;
    min-width: 220px;
}

.graph-shell {
    height: 420px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: #050505;
    position: relative;
}

.node-scrub {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(5, 5, 6, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    width: 240px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.node-scrub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.node-scrub input[type="range"] {
    width: 100%;
}

.graph-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
    align-items: flex-start;
}

.legend-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    padding: 2px 0;
}

.pinboard {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.pinboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pinboard li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.pinboard li .meta {
    color: var(--muted);
}

.legend-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
    margin-right: 6px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
}

.graph-context-menu {
    position: fixed;
    z-index: 240;
    min-width: 200px;
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 8px;
    display: none;
    gap: 4px;
}

.graph-context-menu.show {
    display: grid;
}

.graph-context-title {
    margin: 4px 8px 6px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.graph-context-button {
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--ink);
}

.graph-context-button:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.graph-context-button.disabled,
.graph-context-button:disabled {
    opacity: 0.5;
    cursor: default;
    background: transparent;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    background: var(--accent-3);
}

.legend-dot.ioc {
    background: var(--accent);
}

.graph-tooltip {
    position: fixed;
    z-index: 20;
    background: rgba(0, 0, 0, 0.9);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    display: none;
}

.graph-tooltip.show {
    display: block;
}

.graph-tooltip .tooltip-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.graph-tooltip button {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.graph-html-label {
    background: rgba(0, 0, 0, 0.7);
    color: var(--ink);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-family: var(--mono);
    pointer-events: none;
}

.legend-dot.ioc-ip {
    background: #00f3ff;
    box-shadow: 0 0 6px rgba(0, 243, 255, 0.5);
}

.legend-dot.ioc-domain {
    background: #d4ff00;
    box-shadow: 0 0 6px rgba(212, 255, 0, 0.5);
}

.legend-dot.ioc-url {
    background: #ff00ff;
    box-shadow: 0 0 6px rgba(255, 0, 255, 0.45);
}

.legend-dot.ioc-hash {
    background: #ff9500;
    box-shadow: 0 0 6px rgba(255, 149, 0, 0.45);
}

.legend-dot.ioc-cve {
    background: #ff003c;
    box-shadow: 0 0 6px rgba(255, 0, 60, 0.45);
}

.legend-dot.ioc-malware {
    background: #ff4d4f;
    box-shadow: 0 0 6px rgba(255, 77, 79, 0.45);
}

.legend-dot.ioc-email {
    background: #2e95d3;
    box-shadow: 0 0 6px rgba(46, 149, 211, 0.45);
}

.legend-dot.ioc-cidr {
    background: #9aa0a6;
    box-shadow: 0 0 6px rgba(154, 160, 166, 0.35);
}

.legend-dot.actor {
    background: var(--accent-2);
}

.legend-dot.technique {
    background: var(--accent-3);
}

.legend-dot.malware {
    background: #ff4d4f;
    box-shadow: 0 0 6px rgba(255, 77, 79, 0.45);
}

.sandbox-card {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 24px;
    align-self: start;
}

.sandbox-results-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tempo-row {
    margin-top: 24px;
}

.tempo-card {
    display: grid;
    gap: 16px;
}

.tempo-card .card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.tempo-chart {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px 6px;
    background: rgba(12, 12, 16, 0.72);
    min-height: 200px;
}

.tempo-chart canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.tempo-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
}

.tempo-chart.empty .tempo-empty {
    opacity: 1;
}

.tempo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.tempo-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
}

.tempo-legend .legend-dot.queued {
    background: rgba(255, 255, 255, 0.3);
}

.tempo-legend .legend-dot.submitted {
    background: #00f3ff;
    box-shadow: 0 0 6px rgba(0, 243, 255, 0.6);
}

.tempo-legend .legend-dot.completed {
    background: #d4ff00;
    box-shadow: 0 0 6px rgba(212, 255, 0, 0.6);
}

.tempo-legend .legend-dot.failed {
    background: #ff003c;
    box-shadow: 0 0 6px rgba(255, 0, 60, 0.6);
}

.sandbox-results-card .sandbox-list {
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

.sandbox-form {
    display: grid;
    gap: 12px;
}

.sandbox-hash {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.sandbox-hash-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.sandbox-hash-row input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    background: #18181b;
    color: #ededed;
    font-family: var(--mono);
}

.sandbox-select {
    margin-top: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #18181b;
    color: #ededed;
    font-size: 0.9rem;
    font-family: inherit;
}

.sandbox-drop {
    border: 2px dashed #3f3f46;
    border-radius: 16px;
    padding: 16px;
    background: #09090b;
    display: grid;
    gap: 8px;
    cursor: pointer;
}

.sandbox-drop input {
    display: none;
}

.sandbox-drop.is-dragover {
    border-color: #d4ff00;
    background: #18181b;
}

.sandbox-title {
    font-weight: 600;
}

.sandbox-sub {
    color: var(--muted);
    font-size: 0.85rem;
}

.sandbox-file {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: #d4ff00;
}

.sandbox-list {
    display: grid;
    gap: 10px;
}

.sandbox-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sandbox-row > div {
    min-width: 0;
}

.sandbox-row:last-child {
    border-bottom: none;
}

.sandbox-row .pill {
    justify-self: end;
}

.sandbox-name {
    margin: 0;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.sandbox-summary {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.sandbox-preview {
    display: grid;
    gap: 8px;
    padding: 8px 0 4px;
}

.sandbox-preview-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}

.sandbox-preview-item span:last-child {
    text-align: right;
}

.sandbox-errors {
    border-left: 3px solid #d56b4d;
    padding-left: 10px;
}

.sandbox-report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.leak-card table td a {
    font-weight: 600;
}

.chip-link {
    text-decoration: none;
    color: var(--accent-3);
}

.chip-link.active {
    background: rgba(10, 127, 115, 0.18);
    color: var(--accent);
}

.watchlist-link {
    display: inline-block;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.filter-row {
    margin-bottom: 12px;
}

.filter-bar {
    position: relative;
    z-index: 12;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(8, 8, 10, 0.82), rgba(8, 8, 10, 0.55));
    backdrop-filter: blur(12px);
    overflow: visible;
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 13;
    overflow: visible;
}

.filter-grid input,
.filter-grid select {
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    color-scheme: dark;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-family: var(--mono);
    letter-spacing: 0.02em;
    min-width: 150px;
    height: 40px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 14;
    overflow: visible;
}

.filter-grid select option {
    background: #0b0b0d;
    color: #f4f4f5;
}

.filter-grid input::placeholder {
    color: rgba(161, 161, 170, 0.7);
}

.filter-grid .btn {
    padding: 9px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filter-grid input:focus,
.filter-grid select:focus {
    outline: none;
    border-color: rgba(212, 255, 0, 0.6);
    box-shadow: 0 0 0 2px rgba(212, 255, 0, 0.14);
}

.filter-search {
    min-width: 220px;
}

.filter-number {
    max-width: 140px;
}

.filter-rows {
    min-width: 120px;
}

.leak-row.sector-match {
    background: rgba(212, 255, 0, 0.06);
}

.thread-row .data-table thead th {
    border-bottom: 1px solid #333;
    color: #888;
    padding-bottom: 12px;
}

.leak-row.gang-match {
    border-left: 3px solid rgba(212, 255, 0, 0.25);
}

.leak-row:focus:not(.selected),
.leak-row:focus-within:not(.selected) {
    outline: none;
    background: rgba(212, 255, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(212, 255, 0, 0.35);
}

.leak-row.selected {
    background: rgba(255, 0, 60, 0.14);
    border-left: 3px solid #ff003c;
    box-shadow: inset 0 0 0 1px rgba(255, 0, 60, 0.45);
}

.leak-console {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 3;
    overflow: visible;
}

.card.leak-console {
    clip-path: none;
    overflow: visible;
}

.leak-console-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.leak-console .table-header {
    position: relative;
    z-index: 2;
}

.leak-console .data-table,
.leak-console .table-scroll,
.leak-console .leak-table {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.leak-chart-wrap {
    position: relative;
    min-height: 320px;
    background: rgba(8, 8, 10, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ransomwareLeakChart {
    width: 100% !important;
    height: 260px !important;
}

.chart-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    flex-wrap: wrap;
    row-gap: 8px;
}

.chart-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 6px currentColor;
}

.chart-legend .sector-dot {
    color: #d4ff00;
    background: #d4ff00;
}

.chart-legend .other-dot {
    color: #6b7cff;
    background: #6b7cff;
}

.chart-legend .total-dot {
    color: #c7cbd6;
    background: #c7cbd6;
}

.leak-details {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.detail-block {
    background: rgba(10, 10, 12, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.detail-block h4 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.selected-card {
    display: grid;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 0, 0.18);
    padding: 12px;
}

.selected-card .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.selected-card .value {
    color: var(--ink);
}

.selected-card .link {
    color: #d4ff00;
}

.cve-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.cve-list li {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.cve-list li strong {
    color: #d4ff00;
}

.leak-console .empty,
.leak-console .muted {
    color: var(--muted);
}
.timeline-count {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.timeline-link {
    display: inline-flex;
    text-decoration: none;
}

.timeline-link:hover .timeline-count,
.timeline-link:focus-visible .timeline-count {
    color: #d4ff00;
    text-decoration: underline;
}

.timeline-step.warm .timeline-index {
    color: var(--accent-2);
}

.timeline-step.hot .timeline-index {
    color: #a22819;
}

.cve-list {
    gap: 24px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.config-card {
    display: grid;
    gap: 16px;
}

.config-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.config-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 10px;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.config-tab.is-active {
    color: var(--accent);
    border-color: rgba(212, 255, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(212, 255, 0, 0.3);
}

.config-panel {
    display: none;
    gap: 16px;
}

.config-panel.is-active {
    display: grid;
}

.config-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.toggle-key {
    height: 40px;
    justify-content: center;
}

.config-actions {
    display: flex;
    justify-content: flex-end;
}

.config-messages {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.config-message {
    padding: 12px 16px;
    border: 1px solid rgba(212, 255, 0, 0.35);
    background: rgba(212, 255, 0, 0.08);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink);
}

.form-error {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: #ff003c;
    margin-top: -6px;
}

.dossier-page {
    gap: 24px;
}

.dossier-grid {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dossier-id {
    display: grid;
    gap: 16px;
    align-content: start;
}

.dossier-id-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dossier-clearance {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--muted);
}

.dossier-clearance.admin {
    color: #ff003c;
    border-color: rgba(255, 0, 60, 0.6);
}

.dossier-clearance.analyst {
    color: #2e95d3;
    border-color: rgba(46, 149, 211, 0.6);
}

.dossier-clearance.observer {
    color: var(--muted);
}

.dossier-meta {
    display: grid;
    gap: 12px;
}

.dossier-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--mono);
    margin-bottom: 4px;
}

.dossier-value {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--ink);
}

.dossier-divider {
    height: 1px;
    background: var(--border);
}

.dossier-barcode {
    height: 64px;
    border: 1px solid var(--border);
    background: repeating-linear-gradient(
        90deg,
        rgba(212, 255, 0, 0.8) 0,
        rgba(212, 255, 0, 0.8) 4px,
        rgba(10, 10, 12, 0.9) 4px,
        rgba(10, 10, 12, 0.9) 8px
    );
    border-radius: 6px;
}

.dossier-qr {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-image: linear-gradient(90deg, rgba(212, 255, 0, 0.8) 50%, transparent 50%),
        linear-gradient(rgba(212, 255, 0, 0.8) 50%, transparent 50%);
    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
    opacity: 0.85;
}

.dossier-main {
    display: grid;
    gap: 24px;
}

.dossier-security {
    display: grid;
    gap: 16px;
}

.dossier-controls {
    align-items: start;
}

.dossier-session {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
}

.dossier-session h3 {
    margin: 0;
}

.dossier-session .meta {
    margin: 0;
}

.dossier-audit {
    display: grid;
    gap: 16px;
}

.dossier-audit .data-table tbody tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-shell {
    position: relative;
    display: grid;
    gap: 36px;
    --landing-accent: #7df9ff;
    --landing-accent-2: #ffd166;
    --landing-accent-3: #ff9f68;
    --landing-panel: rgba(10, 11, 15, 0.78);
    --landing-border: rgba(255, 255, 255, 0.08);
}

.landing-shell::before,
.landing-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.7;
}

.landing-shell::before {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(125, 249, 255, 0.25), rgba(3, 3, 4, 0) 70%);
}

.landing-shell::after {
    width: 420px;
    height: 420px;
    bottom: 120px;
    left: -140px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.22), rgba(3, 3, 4, 0) 70%);
}

.landing-shell > * {
    position: relative;
    z-index: 1;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3 {
    text-transform: none;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.landing-shell h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
}

.landing-shell .eyebrow {
    color: var(--landing-accent);
    letter-spacing: 0.18em;
}

.landing-shell .lead {
    font-size: 1.1rem;
    color: #c9cbd4;
}

.landing-shell .meta {
    font-family: var(--display);
    letter-spacing: 0.01em;
}

.landing-shell .btn.primary {
    background: linear-gradient(135deg, rgba(125, 249, 255, 0.95), rgba(255, 209, 102, 0.95));
    color: #050505;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(125, 249, 255, 0.18);
}

.landing-shell .btn.ghost {
    border-color: rgba(125, 249, 255, 0.35);
    color: #e2e8f0;
}

.landing-shell .card,
.landing-shell .hero-panel {
    border-radius: 18px;
    clip-path: none;
    background: var(--landing-panel);
    border: 1px solid var(--landing-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.landing-shell .card::before,
.landing-shell .hero-panel::before {
    display: none;
}

.landing-hero {
    margin-top: 32px;
    align-items: start;
    gap: 32px;
}

.landing-copy {
    display: grid;
    gap: 16px;
}

.landing-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 249, 255, 0.25);
    background: rgba(125, 249, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--landing-accent);
}

.landing-panel .panel-header {
    align-items: flex-start;
}

.landing-panel .status-chip.ok {
    background: rgba(125, 249, 255, 0.18);
    border-color: rgba(125, 249, 255, 0.45);
    color: var(--landing-accent);
}

.landing-panel-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.landing-panel-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 7, 10, 0.7);
}

.landing-panel-card .metric-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
    margin: 0 0 6px;
}

.landing-panel-card .metric-value {
    font-family: var(--display);
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: #f8fafc;
}

.landing-panel-footer {
    margin-top: 18px;
    color: #b6bac6;
}

.landing-section {
    display: grid;
    gap: 20px;
}

.landing-section-header {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.landing-panel .clean-list .meta {
    font-size: 0.85rem;
}

.landing-capabilities {
    margin-top: 12px;
}

.capability-card {
    display: grid;
    gap: 12px;
}

.landing-capabilities .capability-card {
    background: linear-gradient(160deg, rgba(11, 12, 16, 0.92), rgba(8, 9, 12, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-capabilities .capability-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 249, 255, 0.4);
}

.landing-flow {
    margin-top: 8px;
}

.landing-flow-card {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
}

.landing-flow-visual {
    display: grid;
    gap: 14px;
}

.landing-flow-visual .matrix-row {
    background: linear-gradient(90deg, rgba(125, 249, 255, 0.2), rgba(255, 209, 102, 0.2));
}

.landing-clearance {
    margin-top: 32px;
    align-items: start;
}

.landing-form-panel .builder-form {
    margin-top: 16px;
}

.landing-form-panel .builder-form input,
.landing-form-panel .builder-form textarea {
    font-family: var(--display);
    background: rgba(12, 12, 16, 0.9);
}

.landing-brief {
    display: grid;
    gap: 12px;
}

@media (max-width: 960px) {
    .landing-flow-card {
        grid-template-columns: 1fr;
    }
}

.intel-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.intel-chart-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.intel-chart-body {
    margin-top: 12px;
    height: 240px;
}

.intel-chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

.watchlist-fallback {
    display: none;
}

.workflow-card {
    position: relative;
}

.workflow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.workflow-timeline {
    position: relative;
    display: grid;
    gap: 22px;
    padding-left: 18px;
}

.workflow-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 32px;
    width: 2px;
    background: linear-gradient(180deg, rgba(212, 255, 0, 0.6), rgba(212, 255, 0, 0.05));
    box-shadow: 0 0 12px rgba(212, 255, 0, 0.2);
}

.workflow-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
}

.workflow-node {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(212, 255, 0, 0.25), rgba(9, 9, 11, 0.9));
    border: 1px solid rgba(212, 255, 0, 0.5);
    box-shadow: 0 0 18px rgba(212, 255, 0, 0.2), inset 0 0 12px rgba(212, 255, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4ff00;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.workflow-node::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(212, 255, 0, 0.2);
    border-radius: 20px;
}

.workflow-index {
    font-size: 0.85rem;
}

.workflow-content {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 17, 20, 0.85), rgba(9, 9, 11, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.workflow-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f5f5f5;
    margin-bottom: 6px;
}

.workflow-sub {
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 12px;
}

.workflow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-card .chip {
    background: rgba(212, 255, 0, 0.08);
    border: 1px solid rgba(212, 255, 0, 0.3);
    color: #d4ff00;
}

.alert-orbit-card .card-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.orbit-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.orbit-key {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted, #9aa0a6);
}

.orbit-key.orbit-new { color: #00f3ff; border-color: rgba(0, 243, 255, 0.5); }
.orbit-key.orbit-triaged { color: #7ae0c3; border-color: rgba(122, 224, 195, 0.35); }
.orbit-key.orbit-investigating { color: #ff8b5c; border-color: rgba(255, 139, 92, 0.35); }
.orbit-key.orbit-resolved { color: #a1a1aa; border-color: rgba(161, 161, 170, 0.3); }

.orbit-canvas-wrap {
    position: relative;
    height: 360px;
    margin-top: 18px;
    background: radial-gradient(circle at center, rgba(10, 12, 16, 0.85), rgba(4, 5, 7, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.orbit-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.spiral-card .card-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.signal-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.spiral-card .muted {
    max-width: 520px;
}

.spiral-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.spiral-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 4px;
}

.spiral-legend .legend-dot.match {
    background: #d4ff00;
    box-shadow: 0 0 8px rgba(212, 255, 0, 0.6);
}

.spiral-legend .legend-dot.neutral {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.spiral-canvas-wrap {
    position: relative;
    height: 360px;
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at center, rgba(12, 14, 18, 0.92), rgba(4, 5, 7, 0.98));
}

.spiral-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.spiral-tooltip {
    position: absolute;
    min-width: 180px;
    max-width: 240px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(8, 10, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-size: 0.78rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 3;
}

.spiral-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.signal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 8, 12, 0.65);
}

.toggle-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    color: #e5e7eb;
}

.toggle-btn.active {
    color: #0b0f0b;
    background: rgba(212, 255, 0, 0.18);
    box-shadow: inset 0 0 8px rgba(212, 255, 0, 0.35);
    border: 1px solid rgba(212, 255, 0, 0.4);
}

.pressure-sparkline-wrap {
    margin-top: 16px;
    height: 64px;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 8, 12, 0.6);
    padding: 8px 12px;
    overflow: hidden;
}

.pressure-sparkline-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.pressure-sparkline-wrap .sparkline-label {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.spiral-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spiral-canvas-wrap.empty .spiral-empty {
    opacity: 1;
}

@media (max-width: 720px) {
    .hero-panel {
        order: -1;
    }

    .rule-row {
        grid-template-columns: 1fr;
    }

    .split-panel + .split-panel {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 16px;
    }

    .intel-grid {
        grid-template-columns: 1fr;
    }

    .intel-table-header .chip-row {
        justify-content: flex-start;
    }

    .bar-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bar-value {
        justify-self: start;
    }

    .alert-table .col-title {
        width: 100%;
    }

    .evidence-item {
        grid-template-columns: 1fr;
    }

    .graph-layout {
        grid-template-columns: 1fr;
    }

    .sandbox-hash-row {
        grid-template-columns: 1fr;
    }

    .sandbox-row {
        grid-template-columns: 1fr;
    }

    .sandbox-card {
        position: static;
        top: auto;
    }

    .sandbox-results-card {
        height: auto !important;
    }

    .dossier-grid {
        grid-template-columns: 1fr;
    }
}
