/* =============================================
   DFIR LAB — Immersive Investigations Stylesheet
   ============================================= */

/* Scanline CRT overlay */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    animation: scanlineFlicker 8s infinite;
}

@keyframes scanlineFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.25; }
    95% { opacity: 0.5; }
}

/* Boot Sequence */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.boot-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-overlay.hidden {
    display: none;
}

.boot-terminal {
    font-family: var(--font-mono);
    color: #ff0000;
    font-size: 0.85rem;
    max-width: 700px;
    width: 90%;
    line-height: 1.8;
}

.boot-lines .boot-line {
    opacity: 0;
    animation: bootLineAppear 0.1s forwards;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes bootLineAppear {
    to { opacity: 1; }
}

.boot-cursor {
    color: #ff0000;
    animation: blink 0.75s step-end infinite;
}

.boot-line .boot-ok {
    color: #00ff41;
}

.boot-line .boot-warn {
    color: #ffaa00;
}

.boot-line .boot-err {
    color: #ff0000;
    font-weight: bold;
}

/* DFIR Hero */
.dfir-hero {
    position: relative;
    background: var(--bg-darker);
    border-bottom: 2px solid var(--primary);
    padding: 4rem 2rem 3rem;
    text-align: center;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.dfir-hero-content {
    position: relative;
    z-index: 1;
}

.dfir-badge {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); }
}

/* Title typewriter style */
.dfir-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dfir-title .cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    margin-left: 8px;
    animation: blink 0.75s step-end infinite;
}

.dfir-subtitle {
    color: var(--text-lighter);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.dfir-status-bar {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-lighter);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    display: inline-block;
}

.status-dot.active {
    background: #00ff41;
    box-shadow: 0 0 8px #00ff41;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-sep {
    color: var(--border);
}

/* Legal Banner */
.legal-banner {
    background: rgba(255, 170, 0, 0.05);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-left: 3px solid #ffaa00;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-lighter);
    line-height: 1.6;
}

.legal-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Investigator Profile */
.inv-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow: hidden;
}

.inv-profile-card.no-frame {
    background: transparent;
    border: none;
    box-shadow: none;
}

.inv-profile-header {
    background: var(--bg-darker);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.no-frame > .inv-profile-header {
    border-bottom: none;
}

.no-frame > .inv-profile-body {
    padding: 0;
}

.json-display.no-frame {
    border: none;
    background: var(--bg-darker);
}

.terminal-prompt,
.section-header-terminal {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.prompt-user {
    color: #00ff41;
    font-weight: 600;
}

.prompt-path {
    color: #5e9eff;
}

.typed-cmd {
    color: var(--text-light);
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: typingCmd 2s steps(30) forwards, blinkCaret 0.75s step-end infinite;
    display: inline-block;
    vertical-align: middle;
    max-width: 0;
}

@keyframes typingCmd {
    to { max-width: 30ch; }
}

@keyframes blinkCaret {
    50% { border-color: transparent; }
}

.inv-profile-body {
    padding: 1.5rem;
}

.json-display {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 1.25rem;
    overflow-x: auto;
}

.json-output {
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 0;
}

.json-bracket { color: var(--text-lighter); }
.json-key { color: #5e9eff; }
.json-string { color: #00ff41; }

/* Section Header Terminal */
.section-header-terminal {
    background: var(--bg-darker);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--primary);
    margin-bottom: 1.5rem;
}

/* Virtual File System */
.file-system {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.fs-header {
    background: var(--bg-darker);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-lighter);
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

.fs-path {
    color: var(--primary);
    font-weight: 600;
}

/* Case Folder */
.case-folder {
    border-bottom: 1px solid var(--border);
}

.case-folder:last-child {
    border-bottom: none;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.folder-header:hover {
    background: var(--bg-darker);
}

.folder-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.folder-info {
    flex: 1;
}

.folder-name {
    color: #5e9eff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.folder-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.folder-date {
    color: var(--text-lighter);
    font-size: 0.75rem;
}

.folder-status {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.status-closed {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.folder-classification {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.folder-chevron {
    color: var(--text-lighter);
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.case-folder.open .folder-chevron {
    transform: rotate(90deg);
    color: var(--primary);
}

.case-folder.open .folder-icon {
    content: '📂';
}

.folder-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.25rem;
}

.case-folder.open .folder-content {
    max-height: 8000px;
    padding: 1.25rem;
}

/* Case Terminal */
.case-terminal,
.evidence-terminal {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    color: var(--text-lighter);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.8;
}

.term-line {
    white-space: nowrap;
    overflow: hidden;
}

.term-prompt {
    color: #00ff41;
    margin-right: 0.5rem;
    font-weight: 700;
}

.term-cmd {
    color: var(--text-light);
}

.term-info { color: #5e9eff; font-weight: 600; }
.term-ok { color: #00ff41; font-weight: 600; }
.term-warn { color: #ffaa00; font-weight: 600; }
.term-label { color: var(--primary); font-weight: 600; min-width: 14ch; display: inline-block; }
.term-separator { color: var(--border); }

/* Terminal line animation delays */
.term-output .term-line {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s, transform 0.3s;
}

.case-folder.open .term-output .term-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1  { transition-delay: 0.1s !important; }
.delay-2  { transition-delay: 0.3s !important; }
.delay-3  { transition-delay: 0.5s !important; }
.delay-4  { transition-delay: 0.7s !important; }
.delay-5  { transition-delay: 0.9s !important; }
.delay-6  { transition-delay: 1.1s !important; }
.delay-7  { transition-delay: 1.3s !important; }
.delay-8  { transition-delay: 1.5s !important; }
.delay-9  { transition-delay: 1.7s !important; }
.delay-10 { transition-delay: 1.9s !important; }
.delay-11 { transition-delay: 2.1s !important; }
.delay-12 { transition-delay: 2.3s !important; }

/* Analysis sections */
.analysis-section {
    margin-bottom: 2.5rem;
}

.analysis-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.title-icon {
    font-size: 1.2rem;
}

/* Attack Flow */
.attack-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.flow-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    opacity: 0;
    transform: translateY(10px);
}

.flow-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-node:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    padding: 0 0.5rem;
    font-weight: 700;
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.node-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.node-label {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.node-detail {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.node-sub {
    color: var(--text-lighter);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* Evidence Block */
.evidence-block {
    margin-bottom: 2rem;
}

.evidence-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.evidence-tag {
    background: var(--primary);
    color: #000;
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.evidence-id {
    color: var(--text-lighter);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.evidence-code {
    padding: 1.25rem;
    font-size: 0.82rem;
    line-height: 1.8;
    margin: 0;
    overflow-x: auto;
}

.code-comment {
    color: var(--text-lighter);
    font-style: italic;
}

.highlight-ext {
    background: rgba(255, 0, 0, 0.2);
    color: var(--primary);
    padding: 0 0.2rem;
    font-weight: 700;
    animation: extHighlight 2s infinite;
}

@keyframes extHighlight {
    0%, 100% { background: rgba(255, 0, 0, 0.2); }
    50% { background: rgba(255, 0, 0, 0.4); }
}

/* Indicators Grid */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.indicator-card {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 1.25rem;
    transition: var(--transition);
}

.indicator-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.indicator-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.indicator-card h4 {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.indicator-list {
    list-style: none;
    padding: 0;
}

.indicator-list li {
    padding: 0.25rem 0;
    color: var(--text-lighter);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}

.indicator-list li:last-child {
    border-bottom: none;
}

.indicator-list code {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
    padding: 0.1rem 0.4rem;
    font-size: 0.78rem;
}

/* Sophistication Bar */
.sophistication-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    margin: 0.75rem 0 0.5rem;
    overflow: hidden;
}

.soph-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #ffaa00, #ff0000);
    transition: width 1.5s ease;
    animation: sophGlow 2s infinite;
}

@keyframes sophGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 170, 0, 0.4); }
    50% { box-shadow: 0 0 12px rgba(255, 170, 0, 0.7); }
}

.soph-label {
    color: var(--text-lighter);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Hypothesis List */
.hypothesis-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hypothesis {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.hypothesis:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.hyp-num {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    flex-shrink: 0;
    min-width: 2.5rem;
}

.hyp-content {
    flex: 1;
}

.hyp-content strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.hyp-content p {
    color: var(--text-lighter);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.hyp-confidence {
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

.hyp-confidence.high {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.hyp-confidence.medium {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

/* Action Timeline */
.action-timeline {
    position: relative;
    padding-left: 2rem;
}

.action-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-block {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid;
    background: var(--bg-dark);
    z-index: 1;
}

.timeline-marker.urgent {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    animation: markerPulse 1.5s infinite;
}

.timeline-marker.warning {
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.timeline-marker.info {
    border-color: #5e9eff;
    box-shadow: 0 0 10px rgba(94, 158, 255, 0.3);
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.timeline-badge.urgent {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.timeline-badge.warning {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.timeline-badge.info {
    background: rgba(94, 158, 255, 0.1);
    color: #5e9eff;
    border: 1px solid rgba(94, 158, 255, 0.3);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 1rem;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--primary);
}

.action-card h5 {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.action-card ul {
    list-style: none;
    padding: 0;
}

.action-card li {
    padding: 0.2rem 0;
    font-size: 0.75rem;
    color: var(--text-lighter);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.action-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Actor Card */
.actor-card {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.actor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.actor-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 900;
    font-size: 1rem;
}

.actor-handle {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.actor-platform {
    color: var(--text-lighter);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.actor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.actor-stat {
    text-align: center;
}

.actor-stat-num {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    display: block;
}

.actor-stat-label {
    color: var(--text-lighter);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actor-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 0, 0, 0.03);
    border-left: 2px solid var(--primary);
}

.actor-note-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.actor-note blockquote {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.actor-note-context {
    display: block;
    color: var(--text-lighter);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Methodology Section */
.methodology-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.method-card {
    background: var(--bg-card);
    border: none;
    border-top: 2px solid var(--primary);
    padding: 1.5rem;
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.method-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.method-card h4 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.method-card p {
    color: var(--text-lighter);
    font-size: 0.8rem;
    line-height: 1.7;
}

/* Active nav */
.nav-active {
    color: var(--primary) !important;
    text-shadow: 0 0 8px var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .dfir-status-bar {
        flex-direction: column;
        gap: 0.25rem;
    }

    .status-sep {
        display: none;
    }

    .attack-flow {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .flow-node {
        min-width: unset;
        width: 100%;
    }

    .actor-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .indicators-grid {
        grid-template-columns: 1fr;
    }

    .methodology-section {
        grid-template-columns: 1fr;
    }

    .folder-content {
        padding: 0 0.5rem;
    }

    .case-folder.open .folder-content {
        padding: 0.75rem;
    }

    .hypothesis {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Light mode adjustments */
body.light-mode .boot-overlay {
    background: #f5f5f5;
}

body.light-mode .boot-terminal {
    color: #cc0000;
}

body.light-mode .boot-cursor {
    color: #cc0000;
}

body.light-mode .glitch {
    color: #1a1a1a;
}

body.light-mode .json-key { color: #0066cc; }
body.light-mode .json-string { color: #006600; }

body.light-mode .prompt-user { color: #006600; }
body.light-mode .prompt-path { color: #0066cc; }

body.light-mode .indicator-list code {
    color: #006600;
    background: rgba(0, 102, 0, 0.05);
}

body.light-mode .scanline-overlay {
    display: none;
}
