/* Page styles for deepdish_sin.html (extracted from inline <style>) */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&family=Share+Tech+Mono&display=swap');

.project-writeup {
    max-width: 1100px;
    margin: 1rem 70px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2rem 1.8rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(139, 233, 253, 0.1);
    border-top-color: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    line-height: 1.3;
    font-family: 'Courier Prime', 'Courier New', monospace;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    font-size: 0.7rem;
}

.project-writeup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 233, 253, 0.015) 2px, rgba(139, 233, 253, 0.015) 4px);
    pointer-events: none;
    z-index: 1;
}

.classified-header {
    text-align: center;
    border: 3px solid #c41e3a;
    padding: 0.25rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(196, 30, 58, 0.1);
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.classified-header:hover {
    background: rgba(196, 30, 58, 0.2);
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.3), inset 0 0 20px rgba(196, 30, 58, 0.1);
}

.classified-header:hover h1 {
    text-shadow: 0 0 15px rgba(196, 30, 58, 0.8);
    letter-spacing: 0.5em;
}

.classified-header h1 {
    color: #c41e3a;
    font-family: 'Special Elite', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.classification-stamp {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #000000;
    padding: 0 10px;
    color: #c41e3a;
    font-weight: bold;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
}

/* Document bar */
.document-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.6rem;
}

.document-bar-item {
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.document-bar-item:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.15);
}

.document-bar-item:hover label { color: #8be9fd; }
.document-bar-item:hover span { text-shadow: 0 0 8px rgba(139, 233, 253, 0.5); }

.document-bar-item label {
    color: #4a7a8a;
    display: block;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
    transition: color 0.3s ease;
}

.document-bar-item span {
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    transition: text-shadow 0.3s ease;
}

/* Document info */
.document-info {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.62rem;
    color: #6a8a9a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 1.5rem;
    transition: all 0.3s ease;
}

.document-info:hover {
    background: rgba(139, 233, 253, 0.03);
    border-color: rgba(139, 233, 253, 0.4);
}

.document-info p {
    margin: 0.1rem 0;
    color: #6a8a9a;
    transition: all 0.2s ease;
    padding: 0.1rem;
}

.document-info p:hover {
    background: rgba(139, 233, 253, 0.05);
    color: #8be9fd;
}

/* Headings */
.project-writeup h2 {
    color: #8be9fd;
    margin-top: 0.7rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.3);
    padding-bottom: 0.15rem;
    font-family: 'Special Elite', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: default;
}

.project-writeup h2:hover {
    color: #b4f8c3;
    border-bottom-color: rgba(180, 248, 195, 0.5);
    text-shadow: 0 0 10px rgba(180, 248, 195, 0.5);
    padding-left: 10px;
}

.project-writeup h3 {
    color: #5fcfdf;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: default;
}

.project-writeup h3:hover {
    color: #8be9fd;
    text-shadow: 0 0 8px rgba(139, 233, 253, 0.5);
    padding-left: 8px;
}

.project-writeup p {
    color: #9aafba;
    margin-bottom: 0.35rem;
    text-align: justify;
    font-size: 0.68rem;
}

.project-writeup ul, .project-writeup ol {
    color: #9aafba;
    margin-left: 1.2rem;
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
}

.project-writeup li {
    margin-bottom: 0.15rem;
    transition: all 0.2s ease;
    padding: 0.05rem 0;
}

.project-writeup li:hover {
    color: #8be9fd;
    padding-left: 5px;
}

.project-writeup code {
    background: #0a0a0a;
    color: #8be9fd;
    padding: 0.1rem 0.2rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.63rem;
    border: 1px solid rgba(139, 233, 253, 0.2);
    transition: all 0.2s ease;
}

.project-writeup code:hover {
    background: rgba(139, 233, 253, 0.15);
    border-color: rgba(139, 233, 253, 0.5);
    color: #b4f8c3;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.3);
}

.project-writeup a {
    color: #8be9fd;
    text-decoration: none;
    border-bottom: 1px dashed #8be9fd;
    transition: all 0.2s;
}

.project-writeup a:hover {
    color: #b4f8c3;
    border-bottom-color: #b4f8c3;
}

/* Info boxes */
.info-box {
    border: 1px solid rgba(139, 233, 253, 0.2);
    padding: 0.4rem;
    margin: 0.35rem 0;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.65rem;
    transition: all 0.3s ease;
    cursor: default;
}

.info-box:hover {
    background: rgba(139, 233, 253, 0.05);
    border-color: rgba(139, 233, 253, 0.5);
    transform: translateX(5px);
    box-shadow: -3px 0 15px rgba(139, 233, 253, 0.15);
}

.info-box:hover .info-box-header {
    color: #b4f8c3;
    text-shadow: 0 0 8px rgba(180, 248, 195, 0.5);
}

.info-box-header {
    color: #8be9fd;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.15);
    display: block;
    transition: color 0.3s ease;
}

/* Status grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.3rem;
    margin: 0.35rem 0;
}

.status-item {
    text-align: center;
    padding: 0.3rem;
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.status-item:hover {
    background: rgba(139, 233, 253, 0.08);
    border-color: rgba(139, 233, 253, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 233, 253, 0.2);
}

.status-item:hover .value {
    text-shadow: 0 0 12px currentColor;
    transform: scale(1.1);
    display: inline-block;
}

.status-item .label {
    display: block;
    color: #4a7a8a;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.status-item .value {
    color: #8be9fd;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.value.green, .value.ok { color: #b4f8c3; }
.value.red, .value.alert { color: #c41e3a; }
.value.yellow { color: #f1fa8c; }
.value.cyan { color: #8be9fd; }

/* Mini stat */
.mini-stat {
    text-align: center;
    padding: 0.25rem;
    border: 1px solid rgba(139, 233, 253, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.mini-stat:hover {
    background: rgba(139, 233, 253, 0.1);
    border-color: rgba(139, 233, 253, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.2);
}

.mini-stat:hover .value { text-shadow: 0 0 10px currentColor; }

.mini-stat .value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #8be9fd;
    transition: text-shadow 0.3s ease;
}

.mini-stat .label {
    font-size: 0.45rem;
    color: #4a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image grid */
.intel-images {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.4rem 0;
}

.intel-images img {
    border: 1px solid rgba(139, 233, 253, 0.15);
    border-radius: 0;
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.intel-images img:hover {
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
    border-color: rgba(139, 233, 253, 0.5);
    box-shadow: 0 0 30px rgba(139, 233, 253, 0.3);
    transform: scale(1.02);
}

/* Redacted */
.redacted {
    background: #0a1215;
    color: #0a1215;
    padding: 0 4px;
    user-select: none;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
    cursor: not-allowed;
}

.redacted:hover {
    background: #1a2530;
    animation: redacted-glitch 0.3s ease infinite;
}

@keyframes redacted-glitch {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.redacted-block {
    background: #0a1215;
    padding: 0.25rem 0.4rem;
    margin: 0.35rem 0;
    border-left: 3px solid #c41e3a;
    font-style: italic;
    color: #4a6a7a;
    font-size: 0.63rem;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
    cursor: default;
}

.redacted-block:hover {
    background: rgba(139, 233, 253, 0.03);
    border-left-color: #8be9fd;
    color: #6a8a9a;
}

/* Stamps */
.stamp {
    position: absolute;
    transform: rotate(-15deg);
    border: 3px solid;
    padding: 0.25rem 0.5rem;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    letter-spacing: 0.2em;
    opacity: 0.5;
    pointer-events: auto;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stamp:hover {
    opacity: 0.9;
    transform: rotate(-15deg) scale(1.15);
}

.stamp.approved {
    color: #8be9fd;
    border-color: #8be9fd;
    top: 60px;
    right: 30px;
}

.stamp.approved:hover {
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.5);
    text-shadow: 0 0 10px rgba(139, 233, 253, 0.8);
}

.stamp.eyes-only {
    color: #c41e3a;
    border-color: #c41e3a;
    bottom: 80px;
    left: 20px;
    transform: rotate(12deg);
}

.stamp.eyes-only:hover {
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.8);
    transform: rotate(12deg) scale(1.15);
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    padding: 0.15rem 0;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
    cursor: default;
}

.ticker-wrap:hover {
    background: rgba(196, 30, 58, 0.2);
    border-color: rgba(196, 30, 58, 0.5);
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
    color: #ff6b6b;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: #c41e3a;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Clearance badges */
.clearance-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-right: 0.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clearance-badge:hover { transform: scale(1.15); box-shadow: 0 0 15px currentColor; }
.clearance-badge.ts { background: rgba(196, 30, 58, 0.3); color: #c41e3a; border: 1px solid #c41e3a; }
.clearance-badge.ts:hover { background: rgba(196, 30, 58, 0.5); box-shadow: 0 0 15px rgba(196, 30, 58, 0.6); }
.clearance-badge.s { background: rgba(255, 121, 198, 0.2); color: #ff79c6; border: 1px solid #ff79c6; }
.clearance-badge.s:hover { background: rgba(255, 121, 198, 0.4); box-shadow: 0 0 15px rgba(255, 121, 198, 0.6); }
.clearance-badge.c { background: rgba(139, 233, 253, 0.2); color: #8be9fd; border: 1px solid #8be9fd; }
.clearance-badge.c:hover { background: rgba(139, 233, 253, 0.4); box-shadow: 0 0 15px rgba(139, 233, 253, 0.6); }

/* Section number */
.section-number {
    color: #4a7a8a;
    font-size: 0.6rem;
    margin-right: 0.3rem;
}

/* Warning box */
.warning-box {
    border: 2px solid #c41e3a;
    background: rgba(196, 30, 58, 0.05);
    padding: 0.4rem;
    margin: 0.4rem 0;
    position: relative;
    font-size: 0.63rem;
    transition: all 0.3s ease;
    cursor: default;
}

.warning-box::before {
    content: '\26A0 WARNING';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #000000;
    padding: 0 8px;
    color: #c41e3a;
    font-weight: bold;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
}

.warning-box:hover {
    background: rgba(196, 30, 58, 0.12);
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3), inset 0 0 30px rgba(196, 30, 58, 0.05);
    transform: scale(1.01);
}

/* Caution box */
.caution-box {
    border: 1px solid #f1fa8c;
    background: rgba(241, 250, 140, 0.05);
    padding: 0.25rem 0.4rem;
    margin: 0.35rem 0;
    font-size: 0.6rem;
    color: #f1fa8c;
    transition: all 0.3s ease;
    cursor: default;
}

.caution-box::before {
    content: '\25B3 CAUTION: ';
    font-weight: bold;
}

.caution-box:hover {
    background: rgba(241, 250, 140, 0.12);
    border-color: #ffff6b;
    box-shadow: 0 0 15px rgba(241, 250, 140, 0.2);
    transform: translateX(5px);
}

/* Code block */
.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.35rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #8be9fd;
    overflow-x: auto;
    margin: 0.35rem 0;
    transition: all 0.3s ease;
    cursor: text;
}

.code-block:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(139, 233, 253, 0.4);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.15), inset 0 0 30px rgba(139, 233, 253, 0.03);
}

.code-block .comment { color: #4a7a8a; }
.code-block .keyword { color: #ff79c6; }
.code-block .string { color: #f1fa8c; }

/* Two/three/four col grids */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0.4rem 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.4rem 0; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin: 0.4rem 0; }

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6rem;
    margin: 0.35rem 0;
}

.spec-table th, .spec-table td {
    border: 1px solid rgba(139, 233, 253, 0.15);
    padding: 0.2rem 0.4rem;
    text-align: left;
}

.spec-table th {
    background: rgba(139, 233, 253, 0.08);
    color: #8be9fd;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.55rem;
}

.spec-table td { color: #9aafba; background: rgba(0, 0, 0, 0.2); }
.spec-table td.highlight { color: #8be9fd; }
.spec-table tr { transition: all 0.2s ease; }
.spec-table tbody tr:hover, .spec-table tr:hover { background: rgba(139, 233, 253, 0.08) !important; }
.spec-table tr:hover td { color: #8be9fd; text-shadow: 0 0 5px rgba(139, 233, 253, 0.3); }

/* Compact table */
.compact-table { width: 100%; border-collapse: collapse; font-size: 0.52rem; }
.compact-table th, .compact-table td { border: 1px solid rgba(139, 233, 253, 0.1); padding: 0.15rem 0.3rem; text-align: left; }
.compact-table th { background: rgba(139, 233, 253, 0.05); color: #5fcfdf; font-weight: normal; text-transform: uppercase; letter-spacing: 0.03em; }
.compact-table td { color: #7a9aaa; background: rgba(0, 0, 0, 0.15); }
.compact-table tr { transition: all 0.2s ease; }
.compact-table tr:hover { background: rgba(139, 233, 253, 0.1) !important; }
.compact-table tr:hover td { color: #b4f8c3 !important; }

/* Timeline */
.timeline { border-left: 2px solid rgba(139, 233, 253, 0.3); padding-left: 0.7rem; margin: 0.4rem 0; }
.timeline-item {
    position: relative;
    padding-bottom: 0.35rem;
    font-size: 0.63rem;
    transition: all 0.3s ease;
    cursor: default;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.05rem;
    top: 0.2rem;
    width: 8px;
    height: 8px;
    background: #8be9fd;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.timeline-item:hover {
    background: rgba(139, 233, 253, 0.05);
    padding-left: 1rem;
}
.timeline-item:hover::before {
    background: #b4f8c3;
    box-shadow: 0 0 10px rgba(180, 248, 195, 0.8);
    transform: scale(1.5);
}
.timeline-item:hover strong { color: #8be9fd; text-shadow: 0 0 8px rgba(139, 233, 253, 0.5); }
.timeline-item .date { color: #4a7a8a; font-size: 0.55rem; }

/* Document layout with sidebar */
.document-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 0.7rem;
    align-items: start;
}

.main-content-area { min-width: 0; }

.intel-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-panel {
    border: 1px solid rgba(139, 233, 253, 0.15);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.35rem;
    font-size: 0.58rem;
    transition: all 0.3s ease;
}

.sidebar-panel:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(139, 233, 253, 0.4);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.1);
}

.sidebar-panel-header {
    color: #c41e3a;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    font-family: 'Special Elite', monospace;
}

.sidebar-panel-header.cyan { color: #8be9fd; border-bottom-color: rgba(139, 233, 253, 0.3); }
.sidebar-panel-header.green { color: #50fa7b; border-bottom-color: rgba(80, 250, 123, 0.3); }

/* Incident log */
.incident-log {
    max-height: 180px;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
}
.incident-log::-webkit-scrollbar { width: 4px; }
.incident-log::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.incident-log::-webkit-scrollbar-thumb { background: rgba(139, 233, 253, 0.3); }

.incident-entry {
    padding: 0.3rem 0.3rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.1);
    transition: all 0.2s ease;
    cursor: default;
    margin: 0 -0.3rem;
}
.incident-entry:last-child { border-bottom: none; }
.incident-entry:hover {
    background: rgba(139, 233, 253, 0.08);
    padding-left: 0.5rem;
    border-left: 2px solid #8be9fd;
}
.incident-time { color: #4a7a8a; font-size: 0.48rem; }
.incident-msg { color: #9aafba; }
.incident-msg.alert { color: #c41e3a; }
.incident-msg.warn { color: #f1fa8c; }
.incident-msg.ok { color: #50fa7b; }

/* Personnel roster */
.personnel-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.3rem;
    border-bottom: 1px solid rgba(139, 233, 253, 0.08);
    transition: all 0.2s ease;
    cursor: default;
    margin: 0 -0.3rem;
}
.personnel-entry:hover { background: rgba(139, 233, 253, 0.1); padding-left: 0.6rem; }
.personnel-entry:hover .personnel-name { color: #8be9fd; }
.personnel-name { color: #9aafba; }
.personnel-status {
    font-size: 0.48rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.personnel-status.active { background: rgba(80, 250, 123, 0.2); color: #50fa7b; }
.personnel-status.standby { background: rgba(241, 250, 140, 0.2); color: #f1fa8c; }
.personnel-status.offline { background: rgba(196, 30, 58, 0.2); color: #c41e3a; }

/* Comms */
.comms-entry {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    margin-bottom: 0.2rem;
    border-left: 2px solid #4a7a8a;
    font-size: 0.55rem;
    transition: all 0.3s ease;
    cursor: default;
}
.comms-entry:hover { background: rgba(139, 233, 253, 0.1); border-left-width: 4px; padding-left: 0.6rem; transform: translateX(3px); }
.comms-entry.priority { border-left-color: #c41e3a; background: rgba(196, 30, 58, 0.05); }
.comms-entry.priority:hover { background: rgba(196, 30, 58, 0.15); box-shadow: 0 0 15px rgba(196, 30, 58, 0.2); }
.comms-entry:hover .comms-body { color: #8be9fd; }
.comms-header { display: flex; justify-content: space-between; margin-bottom: 0.1rem; }
.comms-channel { color: #ff79c6; font-size: 0.48rem; }
.comms-time { color: #4a7a8a; font-size: 0.48rem; }
.comms-body { color: #9aafba; }

/* Network grid */
.network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
.network-node {
    text-align: center;
    padding: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 233, 253, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
.network-node:hover {
    background: rgba(139, 233, 253, 0.15);
    border-color: rgba(139, 233, 253, 0.5);
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}
.network-node:hover .node-status { animation: pulse-glow 0.5s ease infinite alternate; }
@keyframes pulse-glow {
    from { text-shadow: 0 0 5px currentColor; }
    to { text-shadow: 0 0 15px currentColor, 0 0 25px currentColor; }
}
.network-node .node-id { font-size: 0.48rem; color: #4a7a8a; }
.network-node .node-status { font-size: 0.7rem; margin-top: 0.15rem; transition: all 0.3s ease; }
.network-node .node-status.up { color: #50fa7b; }
.network-node .node-status.down { color: #c41e3a; }
.network-node .node-status.degraded { color: #f1fa8c; }

/* Blink animation */
.blink { animation: blink-animation 1s steps(2, start) infinite; }
@keyframes blink-animation { to { visibility: hidden; } }

/* Doc button container */
.doc-button-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.doc-return-home {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 233, 253, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.doc-return-home::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 233, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.doc-return-home:hover::before { left: 100%; }
.doc-return-home:hover { background: rgba(139, 233, 253, 0.08); border-color: rgba(139, 233, 253, 0.5); }
.doc-return-home:hover img { transform: scale(1.1); box-shadow: 0 0 15px rgba(139, 233, 253, 0.5); }

.doc-return-home img {
    width: 32px; height: 32px; border-radius: 4px;
    border: 1px solid rgba(139, 233, 253, 0.2);
    transition: all 0.3s ease;
}

.doc-return-home-text { display: flex; flex-direction: column; align-items: flex-start; }
.doc-return-home-text span { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: #8be9fd; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-return-home-text small { font-size: 0.55rem; color: #4a7a8a; font-family: 'Courier Prime', monospace; }

/* Footnote */
.footnote {
    font-size: 0.55rem;
    color: #4a6a7a;
    border-top: 1px solid rgba(139, 233, 253, 0.2);
    margin-top: 0.7rem;
    padding-top: 0.35rem;
    transition: all 0.3s ease;
    cursor: default;
}
.footnote:hover { color: #6a9aaa; background: rgba(139, 233, 253, 0.02); padding-left: 10px; }

/* Document footer */
.document-footer {
    margin-top: 0.7rem;
    padding-top: 0.35rem;
    border-top: 2px solid rgba(139, 233, 253, 0.3);
    text-align: center;
    font-size: 0.55rem;
    color: #4a6a7a;
    transition: all 0.3s ease;
}

.document-footer:hover { color: #6a8a9a; border-top-color: rgba(139, 233, 253, 0.5); }
.document-footer p { text-align: center; color: #4a7a8a; font-size: 0.55rem; }
.document-footer .highlight { color: #ff79c6; }

/* Back link */
.back-link {
    display: inline-block;
    margin: 0.4rem 0;
    color: #8be9fd;
    text-decoration: none;
    border-bottom: 1px dashed #8be9fd;
    transition: all 0.3s ease;
    font-family: 'Courier Prime', monospace;
}
.back-link:hover {
    color: #b4f8c3;
    border-bottom-color: #b4f8c3;
    text-shadow: 0 0 10px rgba(180, 248, 195, 0.5);
    transform: translateX(-5px);
    display: inline-block;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

@media (max-width: 1100px) {
    .project-writeup { margin-left: 60px; margin-right: 60px; }
    .document-layout { grid-template-columns: 1fr; }
    .intel-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .project-writeup { margin-left: 55px; margin-right: 55px; }
    .two-col, .three-col, .four-col { grid-template-columns: 1fr; }
    .document-bar { grid-template-columns: repeat(2, 1fr); }
    .document-info { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: repeat(3, 1fr); }
    .intel-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .doc-button-container { grid-template-columns: 1fr; gap: 0.35rem; margin-bottom: 0.5rem; }
    .doc-return-home { padding: 0.35rem 0.5rem; gap: 0.4rem; }
    .doc-return-home img { width: 24px; height: 24px; }
    .doc-return-home-text span { font-size: 0.55rem; }
    .doc-return-home-text small { font-size: 0.45rem; }
    
    .project-writeup {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0.8rem;
        font-size: 0.62rem;
        line-height: 1.25;
    }
    
    .stamp { display: none; }
    
    .classified-header { padding: 0.15rem 0.25rem; margin-bottom: 0.3rem; border-width: 2px; }
    .classified-header h1 { font-size: 0.65rem; letter-spacing: 0.1em; }
    .classification-stamp { font-size: 0.45rem; top: -8px; right: 5px; letter-spacing: 0.08em; padding: 0 5px; }
    
    .document-bar { grid-template-columns: 1fr 1fr; gap: 0.2rem; margin-bottom: 0.3rem; }
    .document-bar-item { padding: 0.15rem 0.25rem; }
    .document-bar-item label { margin-bottom: 0.1rem; font-size: 0.45rem; }
    .document-bar-item span { font-size: 0.55rem; }
    
    .mini-stat { padding: 0.2rem; }
    .mini-stat .value { font-size: 0.6rem; }
    .mini-stat .label { font-size: 0.4rem; }
    
    .ticker-wrap { margin-bottom: 0.3rem; padding: 0.1rem 0; }
    .ticker { font-size: 0.45rem; }
    
    .document-info { padding: 0.25rem; font-size: 0.5rem; gap: 0.15rem; grid-template-columns: 1fr !important; }
    .document-info p { font-size: 0.5rem; margin: 0.05rem 0; }
    
    .status-grid { grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }
    .status-item { padding: 0.3rem; }
    .status-item .value { font-size: 0.7rem; }
    .status-item .label { font-size: 0.4rem; }
    
    .four-col { grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }
    .two-col, .three-col { grid-template-columns: 1fr !important; gap: 0.4rem; }
    
    .info-box { padding: 0.25rem; font-size: 0.5rem; margin: 0.2rem 0; }
    .info-box-header { font-size: 0.45rem; margin-bottom: 0.15rem; }
    
    .project-writeup h1 { font-size: 0.85rem !important; }
    .project-writeup h2 { font-size: 0.62rem; margin-top: 0.5rem; margin-bottom: 0.15rem; letter-spacing: 0.08em; }
    .project-writeup h3 { font-size: 0.55rem; margin-top: 0.3rem; }
    .project-writeup p { font-size: 0.55rem; text-align: left; margin-bottom: 0.25rem; }
    .project-writeup ul, .project-writeup ol { font-size: 0.5rem; margin-left: 0.8rem; margin-bottom: 0.25rem; }
    .project-writeup li { margin-bottom: 0.1rem; }
    
    .spec-table { font-size: 0.45rem; margin: 0.2rem 0; }
    .spec-table th, .spec-table td { padding: 0.1rem 0.2rem; }
    .spec-table th { font-size: 0.4rem; }
    .compact-table { font-size: 0.4rem; }
    .compact-table th, .compact-table td { padding: 0.1rem 0.15rem; }
    
    .code-block { padding: 0.2rem; font-size: 0.45rem; margin: 0.2rem 0; }
    .project-writeup code { font-size: 0.48rem; padding: 0.05rem 0.15rem; }
    
    .document-layout { grid-template-columns: 1fr !important; gap: 0.75rem; }
    .intel-sidebar { position: static !important; grid-template-columns: 1fr !important; gap: 0.4rem; order: 2; }
    .sidebar-panel { padding: 0.4rem; }
    .sidebar-panel-header { font-size: 0.5rem; margin-bottom: 0.3rem; }
    
    .incident-log { max-height: 100px; }
    .incident-time { font-size: 0.4rem; }
    .incident-msg { font-size: 0.5rem; }
    .incident-entry { padding: 0.2rem 0; }
    
    .network-grid { grid-template-columns: repeat(4, 1fr); gap: 0.2rem; }
    .network-node { padding: 0.15rem; }
    .network-node .node-id { font-size: 0.4rem; }
    .network-node .node-status { font-size: 0.5rem; }
    
    .personnel-entry { font-size: 0.5rem; padding: 0.2rem 0; }
    .personnel-status { font-size: 0.4rem; }
    
    .comms-entry { font-size: 0.45rem; padding: 0.2rem; }
    .comms-channel, .comms-time { font-size: 0.4rem; }
    
    .warning-box { padding: 0.25rem; font-size: 0.48rem; margin: 0.25rem 0; }
    .warning-box::before { font-size: 0.4rem; top: -8px; left: 8px; }
    .caution-box { font-size: 0.45rem; padding: 0.2rem 0.3rem; margin: 0.2rem 0; }
    
    .timeline { padding-left: 0.4rem; margin: 0.25rem 0; }
    .timeline-item { font-size: 0.48rem; padding: 0.15rem 0; }
    .timeline-item .date { font-size: 0.4rem; }
    
    .clearance-badge { font-size: 0.4rem; padding: 0.08rem 0.2rem; }
    
    .document-footer { font-size: 0.42rem; margin-top: 0.4rem; padding-top: 0.25rem; }
    .footnote { font-size: 0.4rem; margin-top: 0.4rem; padding-top: 0.25rem; }
    .redacted-block { font-size: 0.48rem; padding: 0.15rem 0.25rem; margin: 0.2rem 0; }
    .section-number { font-size: 0.5rem; }
    .back-link { font-size: 0.6rem; }
    
    .project-writeup img { max-width: 100%; height: auto; }
    .intel-images img { max-width: 100% !important; }
}

@media (max-width: 480px) {
    .document-bar { grid-template-columns: 1fr; }
    .four-col { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr 1fr; }
    .network-grid { grid-template-columns: repeat(3, 1fr); }
    .classified-header h1 { font-size: 0.55rem; letter-spacing: 0.08em; }
    .project-writeup h2 { font-size: 0.52rem; }
    .project-writeup p { font-size: 0.48rem; }
}

/* Hologram Hero Image Effects */
.hologram-container {
    position: relative;
    display: inline-block;
    max-width: 200px;
    overflow: visible;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse 75% 80% at center, black 40%, transparent 70%);
}
.hologram-image {
    max-width: 200px;
    height: auto;
    filter: contrast(1.1) saturate(1.2);
    animation: hologramPhase 4s ease-in-out infinite, hologramGlitch 8s step-end infinite;
    image-rendering: pixelated;
}
.hologram-container::before, .hologram-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    pointer-events: none;
}
.hologram-container::before {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(-30deg) saturate(1.5);
    animation: chromaShiftRed 3s ease-in-out infinite;
}
.hologram-container::after {
    background: url('../assets/remilio2.png') center/contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    filter: hue-rotate(30deg) saturate(1.5);
    animation: chromaShiftBlue 3s ease-in-out infinite reverse;
}
.hologram-scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0.4) 2px);
    pointer-events: none;
    z-index: 10;
    animation: scanlineMove 0.1s linear infinite;
}
.hologram-flicker {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(139, 233, 253, 0.03);
    pointer-events: none;
    z-index: 11;
    animation: hologramFlicker 0.15s infinite;
    mix-blend-mode: overlay;
}
.hologram-noise {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    animation: noiseShift 0.5s steps(10) infinite;
}
@keyframes hologramPhase {
    0%, 100% { opacity: 0.95; transform: scale(1) translateY(0); filter: contrast(1.1) saturate(1.2) brightness(1); }
    25% { opacity: 0.85; transform: scale(1.01) translateY(-1px); filter: contrast(1.2) saturate(1.4) brightness(1.1); }
    50% { opacity: 0.9; transform: scale(0.99) translateY(1px); filter: contrast(1.15) saturate(1.3) brightness(0.95); }
    75% { opacity: 1; transform: scale(1.005) translateY(-0.5px); filter: contrast(1.25) saturate(1.5) brightness(1.15); }
}
@keyframes hologramGlitch {
    0%, 95%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    96% { clip-path: inset(20% 0 30% 0); transform: translate(-3px, 0); }
    97% { clip-path: inset(50% 0 10% 0); transform: translate(3px, 0); }
    98% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    99% { clip-path: inset(40% 0 20% 0); transform: translate(2px, 0); }
}
@keyframes chromaShiftRed { 0%, 100% { transform: translate(-1px, 0); } 50% { transform: translate(-2px, 1px); } }
@keyframes chromaShiftBlue { 0%, 100% { transform: translate(1px, 0); } 50% { transform: translate(2px, -1px); } }
@keyframes scanlineMove { 0% { background-position: 0 0; } 100% { background-position: 0 4px; } }
@keyframes hologramFlicker {
    0%, 100% { opacity: 0.03; } 10% { opacity: 0.08; } 20% { opacity: 0.02; } 30% { opacity: 0.1; }
    40% { opacity: 0.04; } 50% { opacity: 0.15; } 60% { opacity: 0.05; } 70% { opacity: 0.12; }
    80% { opacity: 0.03; } 90% { opacity: 0.08; }
}
@keyframes noiseShift {
    0% { transform: translate(0, 0); } 10% { transform: translate(-5%, -5%); } 20% { transform: translate(5%, 5%); }
    30% { transform: translate(-5%, 5%); } 40% { transform: translate(5%, -5%); } 50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); } 70% { transform: translate(-3%, -3%); } 80% { transform: translate(3%, 3%); }
    90% { transform: translate(-1%, 1%); } 100% { transform: translate(0, 0); }
}
.hologram-container:hover .hologram-image { animation: hologramPhaseIntense 2s ease-in-out infinite, hologramGlitchIntense 3s step-end infinite; filter: contrast(1.3) saturate(1.6) brightness(1.2); }
.hologram-container:hover .hologram-noise { opacity: 0.25; }
.hologram-container:hover .hologram-flicker { animation: hologramFlickerIntense 0.08s infinite; }
@keyframes hologramPhaseIntense {
    0%, 100% { opacity: 1; transform: scale(1); } 25% { opacity: 0.7; transform: scale(1.02) translateX(-2px); }
    50% { opacity: 0.9; transform: scale(0.98) translateX(2px); } 75% { opacity: 0.8; transform: scale(1.01) translateY(-2px); }
}
@keyframes hologramGlitchIntense {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); }
    91% { clip-path: inset(30% 0 20% 0); transform: translate(-4px, 0); } 92% { clip-path: inset(10% 0 50% 0); transform: translate(4px, 0); }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); } 94% { clip-path: inset(20% 0 40% 0); transform: translate(3px, 0); }
    95% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); } 96% { clip-path: inset(15% 0 55% 0); transform: translate(2px, 0); }
    97% { clip-path: inset(50% 0 20% 0); transform: translate(-3px, 0); } 98% { clip-path: inset(25% 0 45% 0); transform: translate(3px, 0); }
    99% { clip-path: inset(35% 0 35% 0); transform: translate(-1px, 0); }
}
@keyframes hologramFlickerIntense {
    0%, 100% { opacity: 0.1; background: rgba(139, 233, 253, 0.05); } 25% { opacity: 0.2; background: rgba(255, 100, 100, 0.05); }
    50% { opacity: 0.05; background: rgba(100, 255, 100, 0.05); } 75% { opacity: 0.25; background: rgba(139, 233, 253, 0.08); }
}
