/* ========== COMPUTER SYSTEM STYLES ========== */
/* Modular computer/desktop interface for in-game use */

/* Monitor Frame */
.computer-monitor {
    background: #4a453f;
    width: 100%;
    height: var(--vh100, 100vh);
    padding: 20px;
    box-shadow:
        inset 0 -5px 10px rgba(0,0,0,0.5),
        inset 0 5px 5px rgba(255,255,255,0.1);
    position: relative;
    margin: 0;
    animation: monitorPowerOn 0.5s ease-out;
    box-sizing: border-box;
}

@keyframes monitorPowerOn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Monitor brand label */
.computer-monitor-brand {
    position: absolute;
    bottom: 10px;
    right: 40px;
    color: #666;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Power LED */
.computer-power-led {
    position: absolute;
    bottom: 12px;
    left: 40px;
    width: 8px;
    height: 8px;
    background: #ff69b4;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff69b4;
    animation: computerLedPulse 2s infinite;
    /* will-change promotes this element to its own compositor
       layer so the opacity animation runs on the compositor
       thread (GPU) instead of forcing paint on the main thread.
       DevTools was marking this as non-composited before the
       hint. Small element, one instance, safe use of will-change. */
    will-change: opacity;
}

@keyframes computerLedPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Screen */
.computer-screen {
    background: #1a1815;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(0,0,0,0.5);
    animation: screenBootUp 1.5s ease-out;
}

@keyframes screenBootUp {
    0% {
        background: #000;
        box-shadow: inset 0 0 100px rgba(255,255,255,0);
    }
    20% {
        background: #fff;
        box-shadow: inset 0 0 100px rgba(255,255,255,1);
    }
    40% {
        background: #888;
    }
    60% {
        background: #444;
    }
    100% {
        background: #1a1815;
        box-shadow:
            inset 0 0 50px rgba(0,0,0,0.8),
            inset 0 0 20px rgba(0,0,0,0.5);
    }
}

/* CRT curve effect */
.computer-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 999;
}

/* Boot screen overlay */
.computer-boot-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: bootScreenFade 6s ease-out forwards;
}

@keyframes bootScreenFade {
    0% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.computer-boot-content {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

/* Logo image */
.computer-boot-logo-img {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.computer-boot-logo-img img {
    max-width: 320px;
    max-height: 380px;
    width: auto;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 1px rgba(212, 196, 160, 0.6))
            drop-shadow(0 0 8px rgba(212, 196, 160, 0.2));
    animation: bootLogoAppear 0.8s ease-out forwards;
}

@keyframes bootLogoAppear {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Version text */
.computer-boot-version-text {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 36px;
    font-weight: bold;
    color: #d4c4a0;
    margin-bottom: 20px;
    letter-spacing: 8px;
    opacity: 0;
    animation: bootTextAppear 0.5s ease-out 0.3s forwards;
    text-shadow:
        2px 2px 0 #8b7355,
        4px 4px 8px rgba(0,0,0,0.5),
        0 0 20px rgba(212, 196, 160, 0.3);
}

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

/* Loading bar */
.computer-boot-loading {
    width: 100%;
    height: 20px;
    background: #2a2025;
    border: 2px solid #8b7355;
    margin: 40px 0 15px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    animation: bootTextAppear 0.5s ease-out 0.5s forwards;
}

.computer-boot-loading-bar {
    height: 100%;
    background: #8b7355;
    width: 0%;
    box-shadow: 0 0 10px rgba(139, 115, 85, 0.5);
    transition: width 0.1s linear;
}

/* Status text under bar */
.computer-boot-status {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #d4c4a0;
    letter-spacing: 1px;
    text-align: center;
    min-height: 24px;
    opacity: 0;
    animation: bootTextAppear 0.5s ease-out 0.5s forwards;
}

/* Footer text */
.computer-boot-footer {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #8b7355;
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    animation: bootTextAppear 0.5s ease-out 3.5s forwards;
}

/* Scanlines */
.computer-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
    pointer-events: none;
    z-index: 998;
    opacity: 0.3;
}

/* OS Container */
.computer-os-container {
    background: linear-gradient(180deg, #d4c4a0 0%, #e8d8b4 100%);
    height: 100%;
    position: relative;
    color: #2a2025;
    animation: osStartup 2s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes osStartup {
    0% {
        opacity: 0;
    }
    70% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Paper texture overlay */
.computer-paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(139, 69, 19, 0.05) 35px, rgba(139, 69, 19, 0.05) 70px),
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Top menu bar */
.computer-menu-bar {
    background: #8b7355;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6b5d54;
    gap: 15px;
    position: relative;
    z-index: 200;
}

.computer-menu-title {
    color: #f4e4c0;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
}

.computer-power-button {
    background: #6b5d54;
    border: 2px solid #4a453f;
    color: #f4e4c0;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.computer-power-button:hover {
    background: #8b1538;
    color: #fff;
    box-shadow: 0 0 10px rgba(139, 21, 56, 0.5);
}

.computer-power-button:active {
    transform: scale(0.95);
}

/* Power off animation */
.computer-powering-off {
    animation: monitorPowerOff 2s ease-out forwards;
}

.computer-powering-off .computer-os-container {
    animation: powerOffFade 2s ease-out forwards;
}

.computer-powering-off .computer-screen {
    animation: screenPowerOff 2s ease-out forwards;
}

@keyframes monitorPowerOff {
    0% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes powerOffFade {
    0% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(0.7);
    }
    80% {
        opacity: 0.3;
        filter: brightness(0.3);
    }
    100% {
        opacity: 0;
        filter: brightness(0);
    }
}

@keyframes screenPowerOff {
    0% {
        background: #1a1815;
    }
    50% {
        background: #0a0a08;
    }
    80% {
        background: #000;
        box-shadow: inset 0 0 100px rgba(255,255,255,0.1);
    }
    100% {
        background: #000;
        box-shadow: none;
    }
}

/* Shutdown overlay */
.computer-shutdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #8b7355;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: shutdownFadeIn 0.3s ease-out;
}

@keyframes shutdownFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.computer-shutdown-message {
    color: #f4e4c0;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease-out;
}

/* Update scenario styles */
.computer-update-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.computer-update-progress {
    width: 80px;
    height: 300px;
    position: relative;
}

.computer-update-condom {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid #6b5d54;
    border-radius: 40px 40px 10px 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Condom tip */
.computer-update-condom::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid #6b5d54;
    border-bottom: none;
    border-radius: 50% 50% 0 0;
}

/* Condom ring at bottom */
.computer-update-condom::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -3px;
    right: -3px;
    height: 20px;
    background: #6b5d54;
    border-radius: 0 0 10px 10px;
    z-index: 1;
}

.computer-update-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #f4e4c0 0%, #e8d8b4 50%, #d4c4a0 100%);
    transition: height 3s ease-out;
    box-shadow: 0 0 20px rgba(244, 228, 192, 0.5);
    position: relative;
}

/* Power button always visible on menu bar */
.computer-power-button {
    position: relative;
    z-index: 300;
}

@keyframes powerButtonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 21, 56, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 21, 56, 1);
    }
}

/* Wallpaper icon */
.computer-icon-wallpaper {
    background: url('../assets/images/pc/icons/wallpaper.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* Zipper icon */
.computer-icon-zipper {
    background: url('../assets/images/pc/icons/zipper.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-zipper::before {
    content: none;
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Typewriter icon */
.computer-icon-typewriter {
    background: url('../assets/images/pc/icons/typewriter.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-typewriter::before {
    content: none;
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* VelvetScreen icon */
.computer-icon-velvetscreen {
    background: url('../assets/images/pc/icons/velvet.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-velvetscreen::before {
    content: none;
}

/* SlutBook icon */
.computer-icon-slutbook {
    background: url('../assets/images/pc/icons/slutbook.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* Dripper icon */
.computer-icon-dripper {
    background: linear-gradient(135deg, #1b3a5f 0%, #0f2847 100%);
    border: 2px solid #081a30;
}

/* ShadowChat icon */
.computer-icon-shadowchat {
    background: url('../assets/images/pc/icons/shadowchat.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* BlackGlass icon */
.computer-icon-blackglass {
    background: url('../assets/images/pc/icons/blackglass.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* Copra icon */
.computer-icon-copra {
    background: url('../assets/images/pc/icons/copra.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* CornHub icon */
.computer-icon-cornhub {
    background: url('../assets/images/pc/icons/cornhub.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* Eargasm icon (emoji-based, no PNG) */
.computer-icon-eargasm {
    background: linear-gradient(180deg, #3a2a1a 0%, #2a1f18 100%);
    border: 2px solid #6a5a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4a878;
    font-size: 26px;
    overflow: hidden;
    position: relative;
}
.computer-icon-eargasm::before {
    content: '👂';
    filter: sepia(0.3) brightness(0.95);
}

/* ═══ EARGASM APP ═══ (Variant A — Compact Player) */
.eargasm-app {
    height: 100%;
    background: #d8c8a4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    color: #3A2A1A;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

.eargasm-app .eargasm-tabs {
    display: flex;
    border-bottom: 1.5px solid #9a8a6a;
    background: #c8b890;
}
.eargasm-app .eargasm-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a6a4a;
    cursor: pointer;
    border-right: 1px solid #b8a880;
}
.eargasm-app .eargasm-tab:last-child { border-right: none; }
.eargasm-app .eargasm-tab.active {
    color: #3A2A1A;
    background: rgba(58,42,26,0.06);
    font-weight: bold;
}

.eargasm-app .eargasm-header {
    padding: 16px 18px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px dashed #a89870;
}
.eargasm-app .eargasm-logo {
    width: 44px;
    height: 44px;
    border: 2px solid #6a5a3a;
    background: #3A2A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.eargasm-app .eargasm-logo-ear {
    font-size: 22px;
    filter: grayscale(0.5) brightness(0.9);
}
.eargasm-app .eargasm-logo-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #8B4513;
    border-radius: 50%;
    animation: eargasm-pulse-glow 2s infinite;
}
@keyframes eargasm-pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.eargasm-app .eargasm-brand h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #3A2A1A;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
}
.eargasm-app .eargasm-brand-sub {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    color: #7a6a4a;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
}

.eargasm-app .eargasm-now-playing {
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.eargasm-app .eargasm-album-art {
    width: 80px;
    height: 80px;
    border: 2px solid #6a5a3a;
    background: #2A1F18;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.eargasm-app .eargasm-album-art-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c4a878;
    font-family: 'Special Elite', 'Courier New', monospace;
    padding: 4px;
}
.eargasm-app .eargasm-album-dt {
    font-size: 9px;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
}
.eargasm-app .eargasm-album-tooth {
    font-size: 18px;
    margin: 4px 0;
    filter: grayscale(0.3);
}
.eargasm-app .eargasm-album-title {
    font-size: 7px;
    letter-spacing: 1px;
    opacity: 0.6;
    text-align: center;
}
.eargasm-app .eargasm-track-info {
    flex: 1;
    min-width: 0;
}
.eargasm-app .eargasm-track-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
    color: #3A2A1A;
    margin-bottom: 2px;
}
.eargasm-app .eargasm-track-artist {
    font-size: 10px;
    color: #7a6a4a;
    margin-bottom: 8px;
}
.eargasm-app .eargasm-progress-bar {
    width: 100%;
    height: 4px;
    background: #b8a880;
    position: relative;
    margin-bottom: 4px;
}
.eargasm-app .eargasm-progress-fill {
    height: 100%;
    background: #5a3a1a;
    transition: width 0.3s ease;
}
.eargasm-app .eargasm-progress-times {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #8a7a5a;
}

.eargasm-app .eargasm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 18px 14px;
    border-top: 1px dashed #a89870;
    border-bottom: 1px dashed #a89870;
}
.eargasm-app .eargasm-ctrl-btn {
    background: rgba(196, 180, 144, 0.5);
    border: 1.5px solid #6a5a3a;
    color: #4a3a2a;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 4px 10px;
    transition: background 0.15s ease;
}
.eargasm-app .eargasm-ctrl-btn:hover {
    background: rgba(196, 180, 144, 0.85);
}
.eargasm-app .eargasm-ctrl-btn.play {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
}

.eargasm-app .eargasm-eq-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
}
.eargasm-app .eargasm-eq-bar {
    width: 2px;
    background: #5a3a1a;
    animation: eargasm-eq-dance 0.8s ease-in-out infinite alternate;
}
.eargasm-app .eargasm-eq-bar:nth-child(1) { height: 6px;  animation-delay: 0s;    }
.eargasm-app .eargasm-eq-bar:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.eargasm-app .eargasm-eq-bar:nth-child(3) { height: 4px;  animation-delay: 0.3s;  }
.eargasm-app .eargasm-eq-bar:nth-child(4) { height: 12px; animation-delay: 0.1s;  }
.eargasm-app .eargasm-eq-bar:nth-child(5) { height: 7px;  animation-delay: 0.25s; }

@keyframes eargasm-eq-dance {
    0%   { transform: scaleY(1); }
    100% { transform: scaleY(0.3); }
}

.eargasm-app .eargasm-tracklist {
    padding: 10px 18px 14px;
}
.eargasm-app .eargasm-tracklist-header {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    color: #7a6a4a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #b8a880;
}
.eargasm-app .eargasm-track-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dotted #c4b490;
    cursor: pointer;
    gap: 10px;
    transition: background 0.15s ease;
}
.eargasm-app .eargasm-track-row:hover {
    background: rgba(90,58,26,0.06);
}
.eargasm-app .eargasm-track-row.active {
    background: rgba(90,58,26,0.1);
}
.eargasm-app .eargasm-track-num {
    font-size: 9px;
    color: #8a7a5a;
    width: 16px;
    text-align: right;
    flex-shrink: 0;
}
.eargasm-app .eargasm-track-num.playing {
    color: #5a3a1a;
    font-weight: bold;
}
.eargasm-app .eargasm-track-row-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 11px;
    color: #3A2A1A;
    flex: 1;
}
.eargasm-app .eargasm-track-dur {
    font-size: 9px;
    color: #8a7a5a;
}

/* Artist switcher strip at bottom */
.eargasm-app .eargasm-artist-strip {
    display: flex;
    gap: 6px;
    padding: 10px 18px 14px;
    border-top: 1.5px solid #9a8a6a;
    background: rgba(196, 180, 144, 0.4);
    overflow-x: auto;
}
.eargasm-app .eargasm-artist-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #8a7a5a;
    background: rgba(216, 200, 164, 0.7);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.eargasm-app .eargasm-artist-chip:hover {
    background: rgba(196, 180, 144, 0.9);
}
.eargasm-app .eargasm-artist-chip.active {
    background: #5a3a1a;
    color: #d8c8a4;
    border-color: #3a2a1a;
}
.eargasm-app .eargasm-artist-symbol {
    font-size: 14px;
    line-height: 1;
}
.eargasm-app .eargasm-artist-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* CornHub app styles */
.cornhub-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000000;
    font-family: 'Courier New', monospace;
}

.cornhub-header {
    background: #000000;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 3px solid #ff6a00;
    flex-wrap: wrap;
}

.cornhub-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cornhub-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.cornhub-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cornhub-search-input {
    background: #2a2420;
    border: 2px solid #3a3430;
    color: #e8e8e8;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 200px;
    outline: none;
}

.cornhub-search-input:focus {
    border-color: #ff6a00;
}

.cornhub-search-btn {
    background: #ff6a00;
    color: #000000;
    border: 2px solid #ff8533;
    padding: 6px 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.cornhub-search-btn:hover {
    background: #ff8533;
}

.cornhub-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.cornhub-nav-badge {
    background: rgba(255, 106, 0, 0.2);
    border: 1px solid rgba(255, 106, 0, 0.4);
    padding: 6px 10px;
    border-radius: 20px;
    color: #ff6a00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cornhub-nav-badge.active {
    background: #ff6a00;
    color: #000000;
    border-color: #ff8533;
}

.cornhub-nav-badge:hover {
    background: #ff6a00;
    color: #000000;
}

.cornhub-nav-link {
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cornhub-nav-link:hover {
    color: #ff6a00;
}

.cornhub-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 15px;
}

.cornhub-content {
    flex: 1;
    overflow-y: scroll;
    background: #000000;
    padding: 15px;
}

.cornhub-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #e8e8e8;
}

.cornhub-section-header h2 {
    margin: 0;
    font-size: 18px;
}

.cornhub-results-count {
    font-size: 12px;
    color: #999;
}

.cornhub-results-count strong {
    color: #ff6a00;
}

.cornhub-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.cornhub-video {
    background: #2a2420;
    border: 2px solid #3a3430;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cornhub-video:hover {
    border-color: #ff6a00;
    transform: translateY(-2px);
}

.cornhub-thumb {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #3a3430 0%, #2a2420 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #3a3430;
}

.cornhub-play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 106, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000000;
}

.cornhub-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
}

.cornhub-badge-hd {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 106, 0, 0.9);
    color: #000000;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
}

.cornhub-badge-new {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 255, 0, 0.8);
    color: #000;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
}

.cornhub-video-info {
    padding: 10px;
}

.cornhub-video-title {
    color: #e8e8e8;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: bold;
    line-height: 1.3;
}

.cornhub-video-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.cornhub-video-channel {
    font-size: 11px;
    color: #ff6a00;
    font-weight: 600;
}

.cornhub-pagination {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #2a2420;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cornhub-page-info {
    font-size: 12px;
    color: #999;
}

.cornhub-page-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cornhub-page-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.cornhub-page-btn:hover:not(:disabled) {
    background: #ff6a00;
    color: #000000;
    border-color: #ff8533;
}

.cornhub-page-btn.active {
    background: #ff6a00;
    color: #000000;
    border-color: #ff8533;
}

.cornhub-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cornhub-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid #2a2420;
    padding: 15px;
    overflow-y: scroll;
    color: #e8e8e8;
}

.cornhub-sidebar h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.cornhub-sidebar h4 {
    margin: 6px 0;
    font-size: 12px;
    color: #999;
}

.cornhub-channels-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #999;
}

.cornhub-channels-list li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
}

.cornhub-channels-list li span {
    color: #ff6a00;
}

.cornhub-subscribe-btn {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #ff6a00;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    transition: background 0.2s ease;
}

.cornhub-subscribe-btn:hover {
    background: #ff8533;
}

.cornhub-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 12px 0;
}

.cornhub-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cornhub-filters label {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cornhub-filters input[type="checkbox"] {
    cursor: pointer;
}

/* CornHub Player — sits on top of the main CornHub window, centered */
#cornhub-player-window {
    z-index: 200;
    width: 80%;
    max-width: 900px;
    height: auto;
    max-height: 80%;
}

/* CornHub Player — VHS tape spin-up entrance (synced with CornHubVhs.mp3) */
#cornhub-player-window.active {
    animation: cornhub-player-enter 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cornhub-player-enter {
    /* Black screen — tape engaging */
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.55);
        filter: brightness(0) saturate(0) blur(4px);
    }
    /* Tape head touches — brief static flash, B&W glow */
    15% {
        opacity: 0.7;
        transform: translate(calc(-50% + 6px), -50%) scale(0.78);
        filter: brightness(2.2) saturate(0) blur(2px) contrast(1.4);
    }
    /* Tracking adjusts — image still washed out, jittering */
    30% {
        opacity: 1;
        transform: translate(calc(-50% - 3px), -50%) scale(0.92);
        filter: brightness(1.6) saturate(0.4) blur(1px) contrast(1.2);
    }
    /* Color creeping in, scanlines settling */
    50% {
        transform: translate(calc(-50% + 2px), -50%) scale(1.02);
        filter: brightness(1.3) saturate(0.8) blur(0.4px) contrast(1.05);
        box-shadow: 0 0 50px rgba(255, 106, 0, 0.55);
    }
    /* Almost stable — final tracking jitter */
    75% {
        transform: translate(calc(-50% - 1px), -50%) scale(0.99);
        filter: brightness(1.08) saturate(1.1) blur(0);
    }
    /* Locked in — perfectly centered */
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1) saturate(1) blur(0);
        box-shadow: 0 0 15px rgba(255, 106, 0, 0.15);
    }
}

/* VHS scanline overlay during entrance */
#cornhub-player-window.active::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0;
    animation: cornhub-vhs-scanlines 1.4s ease-out forwards;
}

@keyframes cornhub-vhs-scanlines {
    0% { opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* CornHub Player styles */
.cornhub-player {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000000;
    font-family: 'Courier New', monospace;
    overflow-y: scroll;
}

.cornhub-player-video {
    background: #000;
    border-bottom: 3px solid #ff6a00;
}

.cornhub-player-screen {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #2a2420 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cornhub-player-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 106, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #000000;
    cursor: pointer;
    margin-bottom: 15px;
}

.cornhub-player-message {
    color: #999;
    font-size: 12px;
    text-align: center;
}

/* Playing state */
.cornhub-player-screen.playing {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 50%, #0a0a0a 100%);
    animation: cornhub-screen-pulse 3s ease-in-out infinite;
}

@keyframes cornhub-screen-pulse {
    0%, 100% { background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 50%, #0a0a0a 100%); }
    50% { background: linear-gradient(135deg, #0a0a0a 0%, #2a1500 50%, #0a0a0a 100%); }
}

.cornhub-player-screen.playing .cornhub-player-play-btn {
    display: none;
}

/* EQ visualizer bars */
.cornhub-player-eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.cornhub-eq-bar {
    width: 6px;
    background: #ff6a00;
    border-radius: 2px 2px 0 0;
    animation: cornhub-eq-bounce 0.6s ease-in-out infinite alternate;
}

.cornhub-eq-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.cornhub-eq-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.cornhub-eq-bar:nth-child(3) { height: 50px; animation-delay: 0.15s; }
.cornhub-eq-bar:nth-child(4) { height: 25px; animation-delay: 0.25s; }
.cornhub-eq-bar:nth-child(5) { height: 45px; animation-delay: 0.05s; }
.cornhub-eq-bar:nth-child(6) { height: 30px; animation-delay: 0.2s; }
.cornhub-eq-bar:nth-child(7) { height: 40px; animation-delay: 0.12s; }
.cornhub-eq-bar:nth-child(8) { height: 22px; animation-delay: 0.3s; }

@keyframes cornhub-eq-bounce {
    0% { transform: scaleY(0.3); opacity: 0.6; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* Progress bar fill */
.cornhub-player-progress-bar {
    transition: width 0.1s linear;
}

/* Play button hover */
.cornhub-player-play-btn:hover {
    background: rgba(255, 106, 0, 1);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.cornhub-player-controls {
    background: #000000;
    padding: 10px 15px;
}

.cornhub-player-progress {
    background: #2a2420;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
}

.cornhub-player-progress-bar {
    background: #ff6a00;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s ease;
}

.cornhub-player-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cornhub-control-btn {
    background: transparent;
    border: none;
    color: #e8e8e8;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.cornhub-control-btn:hover {
    color: #ff6a00;
}

.cornhub-player-time {
    color: #999;
    font-size: 11px;
    margin-left: auto;
}

.cornhub-player-info {
    padding: 15px;
    color: #e8e8e8;
}

.cornhub-player-title {
    font-size: 16px;
    font-weight: bold;
    color: #e8e8e8;
    margin: 0 0 10px 0;
}

.cornhub-player-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.cornhub-player-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cornhub-action-btn {
    background: #2a2420;
    border: 2px solid #3a3430;
    color: #e8e8e8;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cornhub-action-btn:hover {
    background: #ff6a00;
    border-color: #ff8533;
    color: #000000;
}

.cornhub-player-description {
    color: #b8b8b8;
    font-size: 12px;
    line-height: 1.5;
    padding-top: 12px;
    border-top: 2px solid #2a2420;
}

.cornhub-player-description p {
    margin: 0 0 10px 0;
}

.cornhub-player-description strong {
    color: #e8e8e8;
}

.cornhub-comments {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #2a2420;
}

.cornhub-comments h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #e8e8e8;
}

.cornhub-comment-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cornhub-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a2420;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cornhub-comment-field {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2420;
    color: #e8e8e8;
    padding: 6px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    outline: none;
}

.cornhub-comment-field:focus {
    border-bottom-color: #ff6a00;
}

.cornhub-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cornhub-comment {
    display: flex;
    gap: 10px;
}

.cornhub-comment-content {
    flex: 1;
}

.cornhub-comment-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}

.cornhub-comment-user {
    font-weight: bold;
    font-size: 12px;
    color: #e8e8e8;
}

.cornhub-comment-user.creator {
    color: #ff6a00;
}

.cornhub-comment-time {
    font-size: 11px;
    color: #999;
}

.cornhub-comment-text {
    font-size: 12px;
    color: #b8b8b8;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cornhub-comment-actions {
    display: flex;
    gap: 10px;
}

.cornhub-comment-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    font-family: 'Courier New', monospace;
    transition: color 0.2s ease;
}

.cornhub-comment-btn:hover {
    color: #ff6a00;
}

/* Comment picker dropdown */
.cornhub-comment-picker {
    background: #1a1410;
    border: 1px solid #3a3430;
    margin: 0 0 15px 0;
    max-height: 200px;
    overflow-y: auto;
    animation: cornhub-picker-in 0.2s ease-out;
}

@keyframes cornhub-picker-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cornhub-comment-option {
    padding: 8px 12px;
    color: #ccc;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    border-bottom: 1px solid #2a2420;
    transition: background 0.15s ease;
}

.cornhub-comment-option:last-child {
    border-bottom: none;
}

.cornhub-comment-option:hover {
    background: #2a2420;
    color: #ff6a00;
}

/* New comment entrance animation */
.cornhub-comment-new {
    animation: cornhub-comment-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cornhub-comment-slide {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* "You" username highlight */
.cornhub-comment-you {
    color: #ff6a00 !important;
    font-weight: bold;
}

/* Likes counter animation */
.cornhub-likes-counter .cornhub-like-num {
    display: inline-block;
    transition: transform 0.15s ease;
}

/* Comment input hover */
.cornhub-comment-input:hover .cornhub-comment-field {
    opacity: 1 !important;
    color: #ff6a00;
}

/* CornHub — Category cards */
.cornhub-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.cornhub-category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2a2420;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cornhub-category-card:hover {
    background: #3a3430;
    transform: translateX(3px);
}

.cornhub-category-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #000000;
}

.cornhub-category-info {
    flex: 1;
    min-width: 0;
}

.cornhub-category-name {
    font-size: 14px;
    font-weight: bold;
    color: #e8e8e8;
    margin-bottom: 2px;
}

.cornhub-category-desc {
    font-size: 11px;
    color: #b8b8b8;
    margin-bottom: 2px;
}

.cornhub-category-count {
    font-size: 10px;
    color: #ff6a00;
}

/* CornHub — Channel list */
.cornhub-channel-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
}

.cornhub-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2a2420;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cornhub-channel-item:hover {
    background: #3a3430;
}

.cornhub-channel-rank {
    font-size: 16px;
    font-weight: bold;
    color: #ff6a00;
    min-width: 30px;
}

.cornhub-channel-name-wrap {
    flex: 1;
}

.cornhub-channel-name {
    font-size: 14px;
    font-weight: bold;
    color: #e8e8e8;
}

.cornhub-channel-stats {
    font-size: 11px;
    color: #b8b8b8;
    margin-top: 2px;
}

/* CornHub — LOCAL badge */
.cornhub-badge-local {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #32CD32;
    color: #000000;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    font-family: 'Courier New', monospace;
}

/* CornHub — Back button */
.cornhub-back-btn {
    background: #3a3430;
    color: #ff6a00;
    border: 1px solid #ff6a00;
    padding: 4px 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cornhub-back-btn:hover {
    background: #ff6a00;
    color: #000000;
}

/* CornHub — No results */
.cornhub-no-results {
    text-align: center;
    color: #b8b8b8;
    padding: 40px 20px;
    font-size: 14px;
    font-style: italic;
}

/* CornHub — Pagination dots */
.cornhub-page-dots {
    color: #b8b8b8;
    padding: 0 4px;
    font-size: 14px;
}

/* CornHub — Favorite active */
.cornhub-action-btn.active {
    background: #ff6a00;
    color: #000000;
    border-color: #ff6a00;
}

/* CornHub — Subscribe button (channel list) */
.cornhub-sub-btn {
    background: transparent;
    color: #ff6a00;
    border: 1px solid #ff6a00;
    padding: 4px 14px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cornhub-sub-btn:hover {
    background: #ff6a00;
    color: #000000;
}

.cornhub-sub-btn.subscribed {
    background: #3a3430;
    color: #b8b8b8;
    border-color: #555;
}

.cornhub-sub-btn.subscribed:hover {
    background: #8B0000;
    color: #e8e8e8;
    border-color: #8B0000;
}

/* CornHub — Small subscribe button (sidebar) */
.cornhub-sub-btn-sm {
    background: transparent;
    color: #ff6a00;
    border: 1px solid #ff6a00;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cornhub-sub-btn-sm:hover {
    background: #ff6a00;
    color: #000000;
}

.cornhub-sub-btn-sm.subscribed {
    background: #ff6a00;
    color: #000000;
    border-color: #ff6a00;
}

/* CornHub — Sidebar subscription list */
.cornhub-subs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CornHub — Subscription badge (new videos) */
.cornhub-sub-badge {
    background: #ff6a00;
    color: #000000;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 6px;
    margin-left: 4px;
}

/* CornHub — New count in channel list */
.cornhub-new-count {
    background: #ff6a00;
    color: #000000;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* CornHub — Channel item layout fix for subscribe btn */
.cornhub-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cornhub-channel-name-wrap {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

/* CornHub — Sidebar channel list item layout */
.cornhub-channels-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.cornhub-channels-list li > span:first-child {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/* CornHub — Sidebar fav count */
.cornhub-sidebar-fav-count {
    color: #ff6a00;
    font-size: 12px;
    padding: 5px 0;
}

/* SlutBook app styles */
.slutbook-app {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #efe6d2;
    font-family: 'Courier New', monospace;
    color: #2a2025;
    overflow: hidden;
}

/* ── header ─────────────────────────────────────────────── */
.sb-top {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 166px 9px 16px;
    background: linear-gradient(180deg, #8b1538 0%, #6d1029 100%);
    border-bottom: 2px solid #4d0b1d;
}

.sb-brand { display: flex; align-items: center; gap: 8px; flex: none; }

.sb-logo {
    font-size: 21px;
    font-weight: bold;
    color: #f7ece0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.sb-logo-heart { color: #ff6b93; font-size: 17px; }

.sb-tagline {
    font-size: 9px;
    line-height: 1.25;
    color: #f0c7d2;
    font-style: italic;
    margin-left: 4px;
}

.sb-search { position: relative; flex: 1 1 260px; min-width: 0; }

.sb-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 30px 7px 12px;
    border: none;
    border-radius: 3px;
    background: #f7ece0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #2a2025;
    outline: none;
}

.sb-search-ic {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #8b1538;
    pointer-events: none;
}

.sb-top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.sb-top-ic { position: relative; font-size: 15px; color: #f7ece0; cursor: pointer; }
.sb-me { font-size: 11px; color: #f7ece0; white-space: nowrap; }
.sb-caret { color: #f0c7d2; font-size: 10px; }

.sb-dot {
    position: absolute;
    top: -6px; right: -7px;
    min-width: 13px;
    padding: 1px 3px;
    border-radius: 7px;
    background: #ff3b5c;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    text-align: center;
    line-height: 1.3;
}

.sb-dot-inline {
    position: static;
    margin-left: auto;
    background: #8b1538;
}

/* the neon plate at the far right of the bar */
.sb-neon {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 152px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 14px;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, #5d0c22 0%, #2a0510 100%);
    border-left: 2px solid #4d0b1d;
    font-size: 10.5px;
    line-height: 1.22;
    font-style: italic;
    color: #ffd9e4;
    text-shadow: 0 0 7px rgba(255, 107, 147, 0.85), 0 0 18px rgba(255, 59, 92, 0.5);
}

/* ── three columns ──────────────────────────────────────── */
.sb-body { flex: 1; display: flex; gap: 12px; padding: 12px; min-height: 0; }
.sb-left  { flex: 0 0 186px; display: flex; flex-direction: column; gap: 12px;
            overflow-y: auto; overflow-x: hidden; }
.sb-mid   { flex: 1 1 auto; min-width: 0; overflow-y: auto; }
.sb-right { flex: 0 0 278px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }

/* ── avatars ────────────────────────────────────────────── */
.sb-av {
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: #d9c9ad;
    border: 1px solid #c3ab8b;
}

.sb-av-34 { width: 34px; height: 34px; }
.sb-av-40 { width: 40px; height: 40px; }
.sb-av-44 { width: 40px; height: 40px; }
.sb-av-56 { width: 56px; height: 56px; }
.sb-av-page { border-radius: 6px; background: #2a0510; object-fit: contain; }

.sb-av-wrap { position: relative; flex: none; display: inline-block; }

.sb-online {
    position: absolute;
    right: 0; bottom: 1px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #46a24a;
    border: 2px solid #f7ece0;
}

/* ── left column ────────────────────────────────────────── */
.sb-mecard {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f7ece0;
    border: 1px solid #d8c7a8;
}

/* The handle is generated (alias + word + birth day), so it is longer
   than the old placeholder and was running off the card. */
.sb-mecard > div { min-width: 0; }
.sb-mecard .sb-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sb-link { color: #8b1538; font-size: 10px; text-decoration: underline; cursor: pointer; }

.sb-nav {
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    padding: 6px;
}

.sb-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    font-size: 11.5px;
    border-radius: 4px;
    cursor: pointer;
}

.sb-nav-item:hover { background: #ece0c8; }

.sb-nav-item.active {
    background: linear-gradient(180deg, #a01c44 0%, #8b1538 100%);
    color: #f7ece0;
    font-weight: bold;
}

.sb-nav-item.active .sb-dot-inline { background: #f7ece0; color: #8b1538; }
.sb-nav-ic { width: 15px; text-align: center; }
.sb-nav-min { color: #5a4a3a; }
.sb-nav-sep { height: 1px; background: #d8c7a8; margin: 7px 4px; }

.sb-poster {
    position: relative;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 12px;
    background: radial-gradient(circle at 60% 30%, #4a0c20 0%, #1a0308 100%);
    border: 1px solid #3d0a18;
}

.sb-poster-script {
    font-size: 19px;
    font-style: italic;
    line-height: 1.12;
    color: #ff7fa3;
    text-shadow: 0 0 8px rgba(255, 59, 92, 0.8);
}

.sb-poster-foot { font-size: 8px; letter-spacing: 2px; color: #c98ba0; text-align: center; }
.sb-poster-foot i { font-size: 7px; letter-spacing: 1px; }

/* ── composer ───────────────────────────────────────────── */
.sb-composer {
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    padding: 11px;
    margin-bottom: 12px;
}

.sb-comp-row { display: flex; align-items: center; gap: 10px; }

.sb-comp-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8c7a8;
    border-radius: 16px;
    background: #efe6d2;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #2a2025;
    outline: none;
}

.sb-comp-btns {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #e2d4b8;
    flex-wrap: wrap;
}

.sb-cb {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid #d8c7a8;
    background: #efe6d2;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    color: #4a3c30;
    cursor: pointer;
}

.sb-cb:hover { background: #e4d6ba; }
.sb-cb-more { padding: 6px 13px; }

/* ── posts ──────────────────────────────────────────────── */
.sb-post {
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    margin-bottom: 12px;
}

.sb-post-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px 8px; }
.sb-post-who { flex: 1; min-width: 0; }
.sb-name { font-size: 12px; font-weight: bold; color: #2a2025; }
.sb-sub { font-size: 9px; color: #8b7355; margin-top: 2px; line-height: 1.35; }

.sb-post-text {
    margin: 0;
    padding: 0 12px 10px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #2a2025;
}

.sb-media { background: #1a1418; line-height: 0; }
.sb-media img { width: 100%; height: 188px; object-fit: cover; display: block; }

/* no photograph exists for the harbour, so it is painted */
.sb-harbor {
    height: 188px;
    background:
        radial-gradient(circle 3px at 22% 44%, rgba(255, 214, 140, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 68% 39%, rgba(255, 196, 110, 0.85) 0%, transparent 100%),
        radial-gradient(circle 2px at 84% 47%, rgba(255, 224, 160, 0.8) 0%, transparent 100%),
        linear-gradient(180deg, #2b2a3a 0%, #453a44 34%, #2a2530 52%, #171a22 100%);
    position: relative;
}

.sb-harbor::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 46%;
    background:
        repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 210, 150, 0.05) 12px 13px),
        linear-gradient(180deg, rgba(20, 22, 28, 0.2) 0%, rgba(12, 14, 18, 0.8) 100%);
}

.sb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sb-tile { position: relative; }
.sb-tile img { height: 150px; }

.sb-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 10, 14, 0.62);
    color: #f7ece0;
    font-size: 21px;
    font-weight: bold;
}

.sb-post-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #e2d4b8;
}

.sb-act {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #4a3c30;
    cursor: pointer;
    border-radius: 4px;
}

.sb-act:hover { background: #ece0c8; }
.sb-act-end { margin-left: auto; letter-spacing: 1px; }
.sb-heart { color: #e0325c; font-size: 13px; }
.sb-like.liked .sb-heart { color: #ff1744; text-shadow: 0 0 8px rgba(255, 23, 68, 0.6); }
.sb-ic { font-size: 12px; }

/* ── right column ───────────────────────────────────────── */
.sb-card {
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    padding: 10px;
}

.sb-card h4 {
    display: flex;
    align-items: center;
    margin: 0 0 9px;
    font-size: 11.5px;
    color: #2a2025;
}

.sb-card h4 .sb-link { margin-left: auto; font-weight: normal; }

.sb-event { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sb-event:last-child { margin-bottom: 0; }

.sb-ev-art { width: 60px; height: 48px; flex: none; overflow: hidden; background: #1a1418; }
.sb-ev-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sb-ev-neon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #101a2e 0%, #050a14 100%);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #8fd4ff;
    text-shadow: 0 0 6px rgba(90, 190, 255, 0.9), 0 0 14px rgba(60, 140, 255, 0.6);
}

.sb-ev-body { flex: 1; min-width: 0; }

.sb-btn {
    padding: 5px 7px;
    border: 1px solid #8b1538;
    background: #8b1538;
    color: #f7ece0;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.sb-btn:hover { background: #a01c44; }
.sb-btn-out { background: transparent; color: #8b1538; padding: 5px 6px; font-size: 8.5px; }
.sb-btn-out:hover { background: #f0d8de; }

.sb-row { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.sb-row:last-child { margin-bottom: 0; }
.sb-row-tight { margin-bottom: 7px; }
.sb-row-body { flex: 1; min-width: 0; }
.sb-dots { color: #8b7355; font-size: 10px; letter-spacing: 0; cursor: pointer; flex: none; }

.sb-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.sb-ph { line-height: 0; background: #1a1418; }
.sb-ph img { width: 100%; height: 46px; object-fit: cover; display: block; cursor: pointer; }
.sb-ph img:hover { opacity: 0.82; }

/* ── SlutBook: the reaction packs ────────────────────────── */
.sb-picker {
    position: absolute;
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    z-index: 40;
    background: #f7ece0;
    border: 1px solid #8b1538;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb-post-foot, .sb-chat-input { position: relative; }

/* The chat composer sits at the bottom of the window, so its picker is
   the one that must open upward. */
.sb-picker-up { top: auto; bottom: calc(100% + 6px); }

.sb-pack-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.sb-pack-title { font-size: 10px; font-weight: bold; letter-spacing: 1px; color: #8b1538; }
.sb-pack-price { font-size: 9px; color: #8b7355; margin-left: auto; }
.sb-pack.owned .sb-pack-price { color: #46a24a; }

.sb-pack-row { display: flex; gap: 5px; }

.sb-emoji {
    position: relative;
    width: 46px; height: 46px;
    padding: 0;
    border: 1px solid #d8c7a8;
    border-radius: 6px;
    background: #efe6d2;
    cursor: pointer;
    overflow: hidden;
}

.sb-emoji img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sb-emoji:hover { border-color: #8b1538; background: #f0d8de; }

.sb-emoji.is-locked img { filter: grayscale(1) brightness(0.78); opacity: 0.55; }

.sb-lock {
    position: absolute;
    right: 2px; bottom: 1px;
    font-size: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.sb-buy {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8b1538;
    background: #8b1538;
    color: #f7ece0;
    font-family: 'Courier New', monospace;
    font-size: 9.5px;
    border-radius: 3px;
    cursor: pointer;
}

.sb-buy:hover { background: #a01c44; }
.sb-buy-no { background: #5a5054; border-color: #5a5054; }

.sb-buy-pulse { animation: sbBuyPulse 0.9s ease 2; }
@keyframes sbBuyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 50, 92, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(224, 50, 92, 0.45); }
}

.sb-react-btn { font-size: 11px; }

.sb-react-slot { display: inline-flex; align-items: center; }
.sb-react-face { width: 26px; height: 26px; object-fit: contain; }

.sb-bub-face { padding: 2px 6px; }
.sb-bub-face img { width: 54px; height: 54px; object-fit: contain; display: block; }

/* ── SlutBook: the other views ───────────────────────────── */
.sb-vhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sb-vhead h3 { margin: 0; font-size: 14px; color: #8b1538; }
.sb-vhead span { font-size: 10px; color: #8b7355; }

.sb-threads { background: #f7ece0; border: 1px solid #d8c7a8; margin-bottom: 12px; }

.sb-thread {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-bottom: 1px solid #e2d4b8;
    cursor: pointer;
}

.sb-thread:last-child { border-bottom: none; }
.sb-thread:hover { background: #efe6d2; }
.sb-thread.open { background: #f0d8de; border-left: 3px solid #8b1538; }
.sb-thread-end { display: flex; align-items: center; gap: 6px; flex: none; }

.sb-chat { background: #f7ece0; border: 1px solid #d8c7a8; }

.sb-chat-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-bottom: 1px solid #e2d4b8;
}

.sb-bubbles { padding: 10px; display: flex; flex-direction: column; gap: 7px; max-height: 190px; overflow-y: auto; }

.sb-bub {
    max-width: 74%;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.45;
}

.sb-bub-them { align-self: flex-start; background: #efe6d2; border: 1px solid #d8c7a8; }
.sb-bub-me   { align-self: flex-end;   background: #8b1538; color: #f7ece0; }

.sb-chat-input {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-top: 1px solid #e2d4b8;
}

.sb-chat-input input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d8c7a8;
    border-radius: 14px;
    background: #efe6d2;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    outline: none;
}

.sb-friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.sb-friend {
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sb-photowall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sb-pw { line-height: 0; background: #1a1418; border: 1px solid #d8c7a8; }
.sb-pw img { width: 100%; height: 118px; object-fit: cover; display: block; cursor: pointer; }
.sb-pw img:hover { opacity: 0.85; }

.sb-eventlist { display: flex; flex-direction: column; gap: 10px; }

.sb-bigevent {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    padding: 10px;
}

.sb-be-art { width: 128px; height: 84px; flex: none; overflow: hidden; background: #1a1418; }
.sb-be-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sb-empty {
    background: #f7ece0;
    border: 1px dashed #c9b79a;
    padding: 34px 16px;
    text-align: center;
    font-size: 11px;
    color: #8b7355;
}

.sb-empty-ic { font-size: 26px; margin-bottom: 8px; opacity: 0.7; }

/* ── SlutBook: the photo preview, in the house style ─────── */
/* a photo opens the way a SlutBook card does — cream stock, a
   crimson banner, the picture sunk into a dark well. NOT the
   black-and-gold HiddenTities lightbox. */
.sb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(42, 32, 37, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.sb-lb-frame {
    position: relative;
    max-width: 94%;
    max-height: 96%;
    min-height: 0;
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.sb-lb-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 8px 7px 12px;
    background: #8b1538;
    color: #f7ece0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sb-lb-who {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-lb-x {
    flex: none;
    width: 26px; height: 22px;
    background: rgba(247, 236, 224, 0.15);
    color: #f7ece0;
    border: 1px solid rgba(247, 236, 224, 0.45);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.sb-lb-x:hover { background: #f7ece0; color: #8b1538; }

.sb-lb-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #2a2025;
}

.sb-lb-frame img {
    max-width: 100%;
    max-height: calc(var(--vh100, 100vh) * 0.62);
    min-height: 0;
    flex: 0 1 auto;
    display: block;
    object-fit: contain;
}

.sb-lb-prev, .sb-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #f7ece0;
    color: #8b1538;
    border: 1px solid #d8c7a8;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.sb-lb-prev { left: 14px; }
.sb-lb-next { right: 14px; }
.sb-lb-prev:hover, .sb-lb-next:hover { background: #f0d8de; }

.sb-lb-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 9px;
    background: #f7ece0;
    border-top: 1px solid #d8c7a8;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #8b7355;
}

/* the counter is a chip, and stays the element slutbookPhotoStep writes into */
.sb-lb-cap {
    flex: none;
    padding: 2px 8px;
    background: #8b1538;
    color: #f7ece0;
    letter-spacing: 2px;
}

/* a button that has already been pressed should look pressed */
.sb-btn-done {
    background: #46a24a;
    border-color: #46a24a;
    color: #f7ece0;
    cursor: default;
}

.sb-btn-done:hover { background: #46a24a; }

.sb-ph img, .sb-pw img { cursor: zoom-in; }

/* ── The SlutBook Girl ───────────────────────────────────────
   She is not Clippy: no permanent corner presence, no idle chatter.
   slutbookSay() puts her up when the network has something to say and
   she leaves on her own. The art is full-body, so the frame crops to
   head and shoulders — a talking figure, not a poster. */
.sb-mascot {
    position: relative;
    z-index: 50;
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #f7ece0 0%, #efe1cd 100%);
    border-top: 2px solid #8b1538;
    animation: sbMascotIn 0.22s ease both;
}

@keyframes sbMascotIn {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 200px; }
}

.sb-mascot-art {
    width: 62px;
    height: 62px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 8%;
    background: #f0d8de;
    border: 2px solid #8b1538;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
}

.sb-mascot-big .sb-mascot-art { width: 84px; height: 84px; }

.sb-mascot-body {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.sb-mascot-who {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #8b1538;
    margin-bottom: 4px;
}

.sb-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #3b7fd4;
    color: #fff;
    font-size: 8px;
}

.sb-mascot-text { font-size: 11.5px; line-height: 1.5; color: #2a2025; }
.sb-mascot-text b { color: #8b1538; }

.sb-mascot-acts { display: flex; gap: 6px; margin-top: 7px; }

.sb-mascot-x {
    flex: none;
    align-self: center;
    width: 24px; height: 24px;
    margin-right: 4px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #8b7355;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.sb-mascot-x:hover { color: #8b1538; border-color: #d8c7a8; background: #efe1cd; }

/* ── She takes the floor ─────────────────────────────────────
   The dock (.sb-mascot) is for everyday lines. This is the moment
   surface: the app dims, she stands at full height on the bottom
   edge, the text sits beside her. Measured headroom in the dock was
   21px at 1280x720 against 240px of figure — hence its own layer. */
.sb-stage {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 24px 0 20px;
    background: rgba(26, 20, 24, 0.74);
    animation: sbStageIn 0.25s ease both;
}

@keyframes sbStageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sb-stage-art {
    height: 98%;
    max-height: 520px;
    width: auto;
    flex: none;
    align-self: flex-end;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
    animation: sbStageRise 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes sbStageRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.sb-stage-body {
    /* .sb-kim is absolute+inset:0 and needs THIS box as its containing
       block. Without position:relative it resolved against .sb-stage
       and her cut-in painted the entire window black — which is the
       one thing it was not supposed to do. */
    position: relative;
    /* She stands on the floor; a centred panel hovered in the dimmed
       void beneath her and read as a modal dropped on top. Sit it at
       her shoulder instead, so figure and line are one unit. */
    align-self: flex-end;
    margin-bottom: 26%;
    max-width: 440px;
    min-width: 0;
    background: #f7ece0;
    border: 1px solid #8b1538;
    border-left: 4px solid #8b1538;
    padding: 14px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.sb-stage-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #2a2025;
    margin-top: 2px;
}

.sb-stage-text b { color: #8b1538; }

.sb-stage-x {
    position: absolute;
    top: 10px; right: 12px;
    width: 26px; height: 26px;
    border: 1px solid rgba(247, 236, 224, 0.35);
    border-radius: 3px;
    background: rgba(26, 20, 24, 0.5);
    color: #f7ece0;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.sb-stage-x:hover { background: #8b1538; border-color: #8b1538; }

/* ── Kim takes the panel ─────────────────────────────────────
   Not the screen. Her full-screen ping is for the story; here the
   cream panel Trixie speaks from goes dark and she types into it,
   in her own tokens: Courier, #e8e8e8, amber glow, and the hairline
   slit that opens before anything is said. */
.sb-kim {
    position: absolute;
    inset: 0;
    background: #000;
    border: 1px solid rgba(196, 168, 122, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
    overflow: hidden;
}

.sb-kim-on  { opacity: 1; }
.sb-kim-off { opacity: 0; }

.sb-kim-slit {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    height: 1px;
    width: 0%;
    background: rgba(196, 168, 122, 0.25);
    box-shadow: 0 0 6px rgba(196, 168, 122, 0.35);
    pointer-events: none;
}

.sb-kim-on .sb-kim-slit { animation: sbKimSlit 0.5s ease forwards; }

@keyframes sbKimSlit {
    from { width: 0%; opacity: 1; }
    70%  { width: 100%; opacity: 1; }
    to   { width: 100%; opacity: 0; }
}

/* While she holds it, the panel keeps a shape of its own — it used to
   inherit the cream box, which shrinks to its text and collapsed to
   130x45 when raised blank, slicing her line into thirds. */
.sb-stage-body.sb-body-kim {
    min-width: 420px;
    min-height: 128px;
    padding: 0;
    border-color: rgba(196, 168, 122, 0.5);
}

/* the figure goes cold while someone else is driving */
.sb-stage.sb-hijacked .sb-stage-art {
    filter: grayscale(0.88) brightness(0.55) drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
    transition: filter 0.35s ease;
}

.sb-kim-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: 1.4px;
    color: #e8e8e8;
    opacity: 0.92;
    text-shadow: 0 0 22px rgba(196, 168, 122, 0.28);
}

/* her scanline wash, faint enough to read through */
.sb-kim::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg,
        rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px,
        transparent 1px, transparent 3px);
}

.sb-kim-go {
    position: absolute;
    right: 10px; bottom: 6px;
    font-size: 12px;
    color: #c4a87a;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sb-kim-go-on { opacity: 1; animation: sbKimGo 1.1s ease-in-out infinite; }

@keyframes sbKimGo {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}

/* the mascot art crossfades when she swaps it */
.sb-stage-art { transition: opacity 0.3s ease; }
.sb-art-swap { opacity: 0; }

/* buttons hold until the line has finished saying itself */
.sb-acts-wait { opacity: 0; pointer-events: none; }
.sb-mascot-acts { transition: opacity 0.25s ease; }

/* his own line, in her channel — she styles him the way her CRT does */
.sb-kim-you {
    color: #c4a87a;
    text-shadow: 0 0 8px rgba(196, 168, 122, 0.35);
}

.sb-kim-you::before { content: '> '; opacity: 0.7; }

/* the question she lets him ask */
.sb-kim-choice {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.sb-kim-choice-on { display: flex; }

.sb-kim-pick {
    background: transparent;
    border: 1px solid rgba(196, 168, 122, 0.55);
    color: #c4a87a;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 6px 10px;
    cursor: pointer;
}

.sb-kim-pick:hover {
    background: rgba(196, 168, 122, 0.14);
    color: #f2e4cc;
}

/* Maya is a skin somebody pulled over the mascot, and she does not
   sit right on it — the swap tears before it settles. */
.sb-art-glitch {
    animation: sbGlitch 0.9s steps(1, end) 1;
}

@keyframes sbGlitch {
    0%   { filter: none; transform: none; opacity: 1; }
    10%  { filter: hue-rotate(90deg) saturate(2.5); transform: translateX(-6px) scaleX(1.02); }
    20%  { filter: invert(0.15) contrast(1.6); transform: translateX(5px); opacity: 0.75; }
    30%  { filter: hue-rotate(-60deg); transform: translateX(-3px) skewX(1.5deg); }
    45%  { filter: none; transform: translateX(4px); opacity: 0.9; }
    60%  { filter: saturate(0.2) brightness(1.3); transform: translateX(-2px); }
    75%  { filter: hue-rotate(120deg) saturate(2); transform: none; opacity: 0.85; }
    100% { filter: none; transform: none; opacity: 1; }
}

/* and a residue: her green wire shows through now and then */
.sb-stage-art.sb-maya-skin {
    animation: sbMayaFlicker 5.5s ease-in-out infinite;
}

@keyframes sbMayaFlicker {
    0%, 92%, 100% { filter: none; }
    94%           { filter: hue-rotate(70deg) saturate(1.8) brightness(1.1); }
    96%           { filter: none; }
    97%           { filter: invert(0.08) hue-rotate(-40deg); }
}

/* Dripper app styles */
.dripper-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.dripper-header {
    background: #1b3a5f;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #0f2847;
}

.dripper-logo {
    color: #f4e4c0;
    font-size: 18px;
    font-weight: bold;
}

.dripper-user {
    display: flex;
    align-items: center;
}

.dripper-avatar {
    width: 32px;
    height: 32px;
    background: #f4e4c0;
    color: #1b3a5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #0f2847;
}

.dripper-avatar-small {
    width: 40px;
    height: 40px;
    background: #d4c4a0;
    color: #2a2025;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #8b7355;
    flex-shrink: 0;
}

.dripper-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dripper-sidebar {
    width: 200px;
    background: #e8d8b4;
    border-right: 2px solid #8b7355;
    padding: 10px;
}

.dripper-drip-btn {
    width: 100%;
    padding: 12px;
    background: #1b3a5f;
    color: #f4e4c0;
    border: 2px solid #0f2847;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.dripper-drip-btn:hover {
    background: #0f2847;
}

.dripper-nav-item {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2a2025;
    transition: background 0.2s;
}

.dripper-nav-item:hover {
    background: #d4c4a0;
}

.dripper-nav-item.active {
    background: #8b7355;
    color: #f4e4c0;
}

.dripper-badge {
    background: #1b3a5f;
    color: #f4e4c0;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: auto;
}

.dripper-feed {
    flex: 1;
    overflow-y: scroll;
    padding: 15px;
    border-right: 2px solid #8b7355;
}

.dripper-composer {
    background: #f4e4c0;
    border: 2px solid #8b7355;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dripper-textarea {
    flex: 1;
    min-height: 50px;
    max-height: 100px;
    padding: 10px;
    background: #e8d8b4;
    border: 2px solid #8b7355;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #2a2025;
    resize: none;
}

.dripper-textarea::placeholder {
    color: #8b7355;
}

.dripper-post-btn {
    padding: 8px 15px;
    background: #1b3a5f;
    color: #f4e4c0;
    border: 2px solid #0f2847;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    align-self: flex-end;
}

.dripper-post-btn:hover {
    background: #0f2847;
}

.dripper-drip {
    background: #f4e4c0;
    border: 2px solid #8b7355;
    padding: 15px;
    margin-bottom: 15px;
}

.dripper-drip-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dripper-drip-author {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.dripper-drip-name {
    font-weight: bold;
    font-size: 12px;
    color: #2a2025;
}

.dripper-drip-handle {
    font-size: 11px;
    color: #8b7355;
}

.dripper-drip-time {
    font-size: 11px;
    color: #8b7355;
}

.dripper-drip-content {
    font-size: 12px;
    color: #2a2025;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 50px;
}

.dripper-drip-actions {
    display: flex;
    gap: 20px;
    padding-left: 50px;
    border-top: 1px solid #d4c4a0;
    padding-top: 10px;
}

.dripper-action {
    font-size: 11px;
    color: #8b7355;
    cursor: pointer;
    transition: color 0.2s;
}

.dripper-action:hover {
    color: #1b3a5f;
}

.dripper-trending {
    width: 300px;
    background: #e8d8b4;
    padding: 15px;
}

.dripper-trending-title {
    font-size: 14px;
    font-weight: bold;
    color: #2a2025;
    margin-bottom: 15px;
}

.dripper-trending-item {
    background: #f4e4c0;
    border: 2px solid #8b7355;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.dripper-trending-item:hover {
    background: #e8d8b4;
}

.dripper-trending-category {
    font-size: 10px;
    color: #8b7355;
    margin-bottom: 3px;
}

.dripper-trending-tag {
    font-size: 12px;
    font-weight: bold;
    color: #2a2025;
    margin-bottom: 3px;
}

.dripper-trending-count {
    font-size: 10px;
    color: #8b7355;
}

/* ShadowChat app styles */
.shadowchat-app {
    /* her stage mounts here with inset:0 — without a containing
       block it would resolve against a higher ancestor and cover
       the whole screen (this exact bug cost a round in SlutBook) */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1a1a2e;
    font-family: 'Courier New', monospace;
}

.shadowchat-header {
    background: #2a2a3c;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #16161f;
}

.shadowchat-logo {
    font-size: 18px;
    font-weight: bold;
    color: #9d9db8;
}

.shadowchat-status {
    font-size: 12px;
    color: #7a7a8f;
}

.shadowchat-status-on {
    color: #4dff4d;
    font-weight: bold;
}

.shadowchat-category-select {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.shadowchat-category-select h2 {
    color: #9d9db8;
    margin: 0 0 30px 0;
    font-size: 20px;
}

.shadowchat-categories {
    display: flex;
    gap: 30px;
}

.shadowchat-category-card {
    background: #2a2a3c;
    border: 2px solid #3a3a4c;
    border-radius: 8px;
    padding: 30px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shadowchat-category-card:hover {
    transform: translateY(-5px);
    border-color: #4a4a6c;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.shadowchat-category-card.spicy {
    border-color: #8b1538;
}

.shadowchat-category-card.spicy:hover {
    border-color: #ff1a5e;
}

.shadowchat-category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.shadowchat-category-title {
    font-size: 16px;
    font-weight: bold;
    color: #c9c9d8;
    margin-bottom: 8px;
}

.shadowchat-category-desc {
    font-size: 12px;
    color: #7a7a8f;
    line-height: 1.4;
}

.shadowchat-conversation {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shadowchat-messages {
    flex: 1;
    overflow-y: scroll;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shadowchat-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 8px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shadowchat-message.stranger {
    align-self: flex-start;
    background: #2a2a3c;
    border: 1px solid #3a3a4c;
}

.shadowchat-message.player {
    align-self: flex-end;
    background: #3a3a5c;
    border: 1px solid #4a4a6c;
}

.shadowchat-message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #9d9db8;
    margin-bottom: 4px;
}

.shadowchat-message-text {
    font-size: 13px;
    color: #c9c9d8;
    line-height: 1.5;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Encrypted typing state — green terminal scramble */
.shadowchat-message-text.encrypting {
    color: #6b8e3d;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(107, 142, 61, 0.55);
    opacity: 0.95;
}

/* Brief decrypt highlight — fades back to normal */
.shadowchat-message-text.decrypted {
    animation: shadowchatDecrypt 0.6s ease-out;
}

@keyframes shadowchatDecrypt {
    0% {
        color: #d4e8a8;
        text-shadow: 0 0 8px rgba(180, 220, 130, 0.7);
    }
    100% {
        color: #c9c9d8;
        text-shadow: none;
    }
}

.shadowchat-responses {
    padding: 15px 20px;
    border-top: 2px solid #2a2a3c;
    background: #16161f;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shadowchat-response-btn {
    background: #2a2a3c;
    border: 2px solid #3a3a4c;
    color: #c9c9d8;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shadowchat-response-btn:hover {
    background: #3a3a5c;
    border-color: #5a5a7c;
    transform: translateX(5px);
}

.shadowchat-end-message {
    color: #7a7a8f;
    font-size: 12px;
    text-align: center;
    font-style: italic;
    padding: 10px;
}

/* ════ BlackGlass Cinematic Search Engine ════ */

/* Utility */
.bg-hidden { display: none !important; }

/* Toolbar */
.bg-toolbar {
    position: relative;
    z-index: 8;
    background: #2a2520;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #3a3530;
}

/* HiddenTities — wrapped in BlackGlass browser chrome */
.ht-browser-frame {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 2px solid #c8a45e;
    box-shadow:
        0 0 20px rgba(200, 164, 94, 0.3),
        inset 0 0 60px rgba(200, 164, 94, 0.05);
    overflow: hidden;
}

.ht-bg-screen {
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.ht-content-scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    z-index: 5;
}

.ht-content-scroll::-webkit-scrollbar {
    width: 10px;
}
.ht-content-scroll::-webkit-scrollbar-track {
    background: #0a0a0a;
}
.ht-content-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c8a45e 0%, #a0803e 100%);
    border-radius: 4px;
}
.bg-dots { display: flex; gap: 4px; }
.bg-dot {
    width: 8px; height: 8px; border-radius: 50%;
    opacity: 0.6;
}
.bg-dot-red   { background: #8B0000; cursor: pointer; }
.bg-dot-yellow { background: #6a5a1a; }
.bg-dot-green  { background: #3a5a3a; }
.bg-back-btn {
    background: none;
    border: 1px solid #3a3530;
    border-radius: 3px;
    color: #6a6a5a;
    padding: 1px 7px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}
.bg-address-bar {
    flex: 1;
    background: #1a1815;
    border-radius: 3px;
    padding: 3px 10px;
    color: #5a5a4a;
    font-size: 10px;
    border: 1px solid #3a3530;
    overflow: hidden;
    white-space: nowrap;
}

.bg-bookmarks-btn {
    background: none;
    border: 1px solid #3a3530;
    border-radius: 3px;
    color: #c4a87a;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 8px;
    transition: all 0.2s;
}
.bg-bookmarks-btn:hover {
    background: rgba(196,168,122,0.1);
    border-color: #c4a87a;
}

.bg-bookmarks-panel {
    position: absolute;
    top: 32px;
    right: 8px;
    width: 240px;
    background: #1a1815;
    border: 1px solid #3a3530;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    z-index: 50;
    font-family: 'Courier New', monospace;
}
.bg-bookmarks-header {
    padding: 8px 12px;
    color: #c4a87a;
    font-size: 11px;
    letter-spacing: 0.1rem;
    border-bottom: 1px solid #3a3530;
    background: #221f1a;
    text-transform: uppercase;
}
.bg-bookmarks-list {
    max-height: 280px;
    overflow-y: auto;
}
.bg-bookmark-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #2a2520;
    transition: background 0.15s;
}
.bg-bookmark-item:hover {
    background: rgba(196,168,122,0.08);
}
.bg-bookmark-icon {
    color: #c4a87a;
    font-size: 14px;
    flex-shrink: 0;
}
.bg-bookmark-info {
    flex: 1;
    min-width: 0;
}
.bg-bookmark-name {
    color: #d4d0c4;
    font-size: 11px;
}
.bg-bookmark-url {
    color: #5a5a4a;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bg-address-encrypted {
    color: #8B0000;
    border-color: rgba(139,0,0,0.3);
}

/* Screen (CRT viewport) */
.bg-screen {
    background: #1a1815;
    position: relative;
    overflow: hidden;
    flex: 1;
    cursor: default;
}
.bg-scanlines {
    position: absolute; inset: 0; z-index: 20; pointer-events: none;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
    );
}
.bg-vignette {
    position: absolute; inset: 0; z-index: 21; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.bg-ping-flash {
    position: absolute; inset: 0; z-index: 22; pointer-events: none;
    background: radial-gradient(circle at center, rgba(196,168,122,0.15) 0%, transparent 70%);
    animation: bg-pingPulse 1.8s ease-out forwards;
}

/* Panels (content areas below toolbar, inside screen) */
.bg-panel {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
}

/* ── HOME PANEL ── */
#bg-home-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bg-logo {
    font-size: 32px;
    font-weight: bold;
    color: #c4a87a;
    letter-spacing: 3px;
    margin-bottom: 2px;
    text-shadow: 0 0 20px rgba(196,168,122,0.15);
    transition: opacity 1s;
}
.bg-tagline {
    font-size: 9px;
    color: #4a4a3a;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-transform: uppercase;
    transition: opacity 1s;
}

/* Search bar */
.bg-search-wrap {
    width: 100%;
    max-width: 460px;
    position: relative;
}
.bg-search-bar {
    background: #2a2520;
    border: 1px solid #3a3530;
    border-radius: 4px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}
.bg-search-bar.bg-focused {
    background: #201e1a;
    border-color: #4a4540;
    box-shadow: 0 0 16px rgba(196,168,122,0.04);
    cursor: default;
}
.bg-search-icon { color: #5a5a4a; font-size: 12px; }
.bg-search-text { flex: 1; min-height: 18px; font-size: 13px; }
.bg-placeholder { color: #4a4a3a; font-size: 12px; }
.bg-typed { color: #c4a87a; font-size: 13px; }
.bg-cursor {
    color: #c4a87a;
    transition: opacity 0.1s;
}
.bg-cursor-idle {
    color: #c4a87a;
    font-size: 13px;
}

/* Dropdown */
.bg-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 30;
    background: #201e1a;
    border: 1px solid #4a4540;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    animation: bg-dropIn 0.2s ease;
}
.bg-dropdown-header {
    padding: 8px 14px 4px;
    font-size: 9px;
    color: #4a4a3a;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.bg-dropdown-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid #2a2520;
}
.bg-dropdown-item:hover {
    background: rgba(196,168,122,0.06);
}
.bg-dropdown-icon { font-size: 14px; width: 22px; text-align: center; }
.bg-dropdown-label { font-size: 12px; color: #8a7a6a; }
.bg-dropdown-footer {
    padding: 6px 14px;
    font-size: 9px;
    color: #3a3530;
    border-top: 1px solid #2a2520;
    text-align: center;
    letter-spacing: 1px;
}

/* Home hint */
.bg-home-hint {
    margin-top: 36px;
    font-size: 10px;
    color: #3a3a2a;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.8;
}
.bg-breathe {
    animation: bg-breathe 2.5s ease-in-out infinite;
    display: inline-block;
}

/* ── RESULTS PANEL ── */
.bg-results-panel {
    padding: 12px 20px;
    overflow-y: auto;
    animation: bg-fadeUp 0.3s ease;
    z-index: 6;
}
.bg-results-meta {
    font-size: 10px;
    color: #4a4a3a;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.bg-result-item {
    padding: 10px 0;
    border-bottom: 1px solid #2a2520;
}
.bg-result-active { opacity: 1; }
.bg-result-dim    { opacity: 0.5; }
.bg-result-url {
    font-size: 9px;
    color: #5a6a4a;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.bg-result-title {
    font-size: 13px;
    color: #c4a87a;
    line-height: 1.3;
}
.bg-result-dim .bg-result-title { color: #7a7a6a; }
.bg-result-source {
    font-size: 9px;
    color: #4a4a3a;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* ── ARTICLE PANEL ── */
.bg-article-panel {
    padding: 16px 24px;
    overflow-y: auto;
    animation: bg-fadeUp 0.3s ease;
    z-index: 6;
}
.bg-article-source {
    font-size: 9px;
    color: #8B0000;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.bg-article-title {
    font-size: 15px;
    color: #c4a87a;
    line-height: 1.3;
    margin-bottom: 4px;
}
.bg-article-date {
    font-size: 10px;
    color: #4a4a3a;
    margin-bottom: 16px;
}
.bg-article-para {
    font-size: 12px;
    color: #8a8a7a;
    line-height: 1.7;
    margin: 0 0 12px;
}

/* ── CHANNEL PANEL ── */
.bg-channel-panel {
    display: flex;
    flex-direction: column;
    animation: bg-channelIn 0.8s ease;
    z-index: 7;
}
.bg-channel-header {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(139,0,0,0.2);
}
.bg-channel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #8B0000;
}
.bg-channel-label {
    font-size: 9px;
    color: #8B0000;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.bg-channel-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Recipe card */
.bg-recipe-card {
    background: #f4e4c0;
    border-radius: 4px;
    padding: 16px 18px;
    border: 1px solid #d4c4a0;
    transform: rotate(-0.4deg);
    max-width: 400px;
    box-shadow: 2px 3px 12px rgba(0,0,0,0.3);
}
.bg-recipe-inner {
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    font-size: 15px;
    color: #2a2a1a;
    line-height: 1.9;
}
.bg-recipe-note {
    font-size: 12px;
    color: #5a5a3a;
    margin-left: 14px;
    margin-bottom: 6px;
}
.bg-recipe-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #c4b490;
    font-size: 12px;
    color: #5a5a3a;
    font-style: italic;
}

/* Kim message */
.bg-kim-message {
    font-size: 14px;
    color: #c4a87a;
    padding: 4px 0;
    letter-spacing: 0.5px;
}

/* ── THOUGHT OVERLAY ── */
.bg-thought-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 15;
    background: linear-gradient(0deg,
        rgba(12,10,8,0.94) 0%,
        rgba(12,10,8,0.8) 60%,
        transparent 100%
    );
    padding: 34px 28px 18px;
    pointer-events: none;
    animation: bg-thoughtIn 0.35s ease;
}
.bg-thought-text {
    font-size: 13px;
    color: #b0a890;
    line-height: 1.65;
    margin: 0;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    max-width: 520px;
}

/* ── CHOICES OVERLAY ── */
.bg-choices-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 16;
    background: linear-gradient(0deg,
        rgba(12,10,8,0.96) 0%,
        rgba(12,10,8,0.85) 75%,
        transparent 100%
    );
    padding: 36px 28px 18px;
    animation: bg-thoughtIn 0.4s ease;
}
.bg-choices-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 440px;
}
.bg-choice-btn {
    background: transparent;
    border: 1px solid #3a3530;
    border-radius: 3px;
    padding: 9px 14px;
    color: #7a7a6a;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bg-choice-btn:hover {
    border-color: #5a5a4a;
    color: #aaa;
}
.bg-choice-btn.bg-choice-picked {
    background: rgba(196,168,122,0.1);
    border-color: #c4a87a;
    color: #c4a87a;
}
.bg-choice-num {
    font-size: 9px;
    border: 1px solid #4a4540;
    border-radius: 2px;
    padding: 1px 5px;
    color: #5a5a4a;
    flex-shrink: 0;
}
.bg-choice-note {
    font-size: 10px;
    color: #5a5a4a;
    font-style: italic;
}

/* Click prompt */
.bg-click-prompt {
    position: absolute;
    bottom: 6px; right: 14px;
    z-index: 18;
    font-size: 12px;
    color: #c4a87a;
    opacity: 0.3;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* ── ANIMATIONS ── */
@keyframes bg-breathe    { 0%,100%{opacity:1} 50%{opacity:0.35} }
@keyframes bg-thoughtIn  { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
@keyframes bg-fadeUp     { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
@keyframes bg-channelIn  { from{opacity:0} to{opacity:1} }
@keyframes bg-recipeIn   { from{opacity:0;transform:rotate(-0.4deg) scale(0.96)} to{opacity:1;transform:rotate(-0.4deg) scale(1)} }
@keyframes bg-pingPulse  { 0%{opacity:1} 40%{opacity:0.3} 100%{opacity:0} }
@keyframes bg-dropIn     { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }

.bg-fade-up { animation: bg-fadeUp 0.3s ease; }

/* BlackGlass scrollbar */
.bg-results-panel::-webkit-scrollbar,
.bg-article-panel::-webkit-scrollbar,
.bg-channel-content::-webkit-scrollbar { width: 4px; }
.bg-results-panel::-webkit-scrollbar-track,
.bg-article-panel::-webkit-scrollbar-track,
.bg-channel-content::-webkit-scrollbar-track { background: transparent; }
.bg-results-panel::-webkit-scrollbar-thumb,
.bg-article-panel::-webkit-scrollbar-thumb,
.bg-channel-content::-webkit-scrollbar-thumb { background: #3a3530; border-radius: 2px; }

/* Copra app styles */
.copra-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2a2025;
    font-family: 'Courier New', monospace;
}

.copra-header {
    background: linear-gradient(180deg, #3a2f35 0%, #2a2025 100%);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1a1815;
}

.copra-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copra-badge {
    /* Same principle as the desktop icon: fixed box, zoomed
       background crops the PNG's transparent padding. */
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: url('../assets/images/pc/icons/copra.png') center/160% no-repeat;
}

.copra-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff69b4;
    letter-spacing: 1px;
}

.copra-user-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #d4a574;
}

.copra-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #d4a574;
}

.copra-status-indicator.online {
    background: #ff69b4;
}

.copra-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.copra-sidebar {
    width: 220px;
    background: #3a2f35;
    border-right: 2px solid #4a3a3f;
    display: flex;
    flex-direction: column;
}

.copra-contacts-header {
    padding: 12px;
    background: #2a2025;
    font-size: 12px;
    font-weight: bold;
    color: #d4a574;
    border-bottom: 1px solid #4a3a3f;
}

.copra-contacts-list {
    flex: 1;
    overflow-y: scroll;
}

.copra-contact {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #2a2025;
    transition: background 0.2s ease;
    position: relative;
}

.copra-contact:hover {
    background: #4a3a3f;
}

.copra-contact-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d4a574;
    flex-shrink: 0;
}

.copra-contact-status.online {
    background: #ff69b4;
}

.copra-contact-status.away {
    background: #d4a574;
}

.copra-contact-status.offline {
    background: #666;
}

.copra-contact-info {
    flex: 1;
}

.copra-contact-name {
    font-size: 12px;
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 2px;
}

.copra-contact-badge {
    font-size: 10px;
    color: #8b7355;
}

.copra-unread-badge {
    background: #8b2f47;
    color: #ff69b4;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.copra-info-box {
    padding: 12px;
    background: #4a3a3f;
    border-top: 2px solid #5a4a4f;
}

.copra-info-title {
    font-size: 11px;
    font-weight: bold;
    color: #d4a574;
    margin-bottom: 4px;
}

.copra-info-text {
    font-size: 10px;
    color: #8b7355;
}

.copra-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1815;
    min-height: 0;
    overflow: hidden;
}

.copra-no-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b7355;
}

.copra-no-chat-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 15px;
    opacity: 0.3;
    background: url('../assets/images/pc/icons/copra.png') center/160% no-repeat;
}

.copra-no-chat-text {
    font-size: 14px;
}

.copra-chat-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.copra-chat-header {
    padding: 12px 15px;
    background: #3a2f35;
    border-bottom: 2px solid #4a3a3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copra-chat-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copra-chat-name {
    font-size: 14px;
    font-weight: bold;
    color: #ff69b4;
}

.copra-chat-status-text {
    font-size: 11px;
    color: #8b7355;
}

.copra-close-chat {
    background: transparent;
    border: none;
    color: #8b7355;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.copra-close-chat:hover {
    color: #ff69b4;
}

.copra-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.copra-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.copra-message.sent {
    align-self: flex-end;
}

.copra-message.received {
    align-self: flex-start;
}

.copra-message-sender {
    font-size: 10px;
    color: #8b7355;
    margin-bottom: 4px;
    padding: 0 8px;
}

.copra-message-bubble {
    padding: 10px 12px;
    border-radius: 8px;
}

.copra-message.sent .copra-message-bubble {
    background: #4a3a3f;
    color: #ff69b4;
    border-bottom-right-radius: 2px;
}

.copra-message.received .copra-message-bubble {
    background: #3a2f35;
    color: #d4a574;
    border-bottom-left-radius: 2px;
}

.copra-message-text {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.copra-message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
}

/* Day separator between message groups in a CopRA thread. */
.copra-message-day-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 4px 10px;
    gap: 10px;
    /* the wire's own gold — currentColor was the dark panel's ink and the
       date read as nothing on the dark field (the author, 2026-10-06) */
    color: #c4a87a;
    opacity: 0.95;
}
.copra-message-day-divider::before,
.copra-message-day-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}
.copra-message-day-divider span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Message type badge styles */
.copra-message-type-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 6px;
    margin-right: 6px;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.copra-badge-system {
    background: #1a0a1a;
    color: #ff69b4;
    border: 1px solid #ff69b4;
    text-shadow: 0 0 3px #ff69b4;
}

.copra-badge-private {
    background: #00132a;
    color: #4169e1;
    border: 1px solid #4169e1;
}

.copra-badge-public {
    background: #2a2200;
    color: #ffd700;
    border: 1px solid #ffd700;
}

.copra-badge-group {
    background: #1a0a2a;
    color: #9370db;
    border: 1px solid #9370db;
}

.copra-badge-urgent {
    background: #2a0000;
    color: #ff0000;
    border: 1px solid #ff0000;
    position: relative;
    box-shadow: 0 0 5px #ff0000;
}
/* Glow layer — pulses opacity only. */
.copra-badge-urgent::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 10px #ff0000;
    /* Yellow highlight ring for the peak state, via border. */
    border: 1px solid #ffff00;
    opacity: 0;
    animation: urgentBadgePulse 1.5s ease-in-out infinite;
}

/* opacity-only pulse of the peak-state overlay. NO color/shadow
   animation on the base element — those trigger repaint. */
@keyframes urgentBadgePulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

.copra-badge-routine {
    background: #1a1a1a;
    color: #808080;
    border: 1px solid #808080;
}

.copra-badge-enter {
    background: #001a00;
    color: #00aa00;
    border: 1px solid #00aa00;
    font-style: italic;
}

.copra-badge-exit {
    background: #1a0000;
    color: #aa0000;
    border: 1px solid #aa0000;
    font-style: italic;
}

/* Additional styling for system messages */
.copra-message-type-system .copra-message-bubble {
    background: #1a0a1a;
    color: #ff69b4;
    font-family: 'Courier New', monospace;
}

.copra-message-type-enter .copra-message-text,
.copra-message-type-exit .copra-message-text {
    font-style: italic;
    opacity: 0.9;
}

.copra-input-area {
    padding: 12px 15px;
    background: #3a2f35;
    border-top: 2px solid #4a3a3f;
    display: flex;
    gap: 10px;
}

.copra-message-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #4a3a3f;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #2a2025;
    color: #d4a574;
}

.copra-message-input:disabled {
    background: #1a1815;
    color: #8b7355;
}

.copra-send-btn {
    padding: 8px 16px;
    background: #8b2f47;
    color: #ff69b4;
    border: none;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.copra-send-btn:disabled {
    background: #4a3a3f;
    color: #8b7355;
    cursor: not-allowed;
}

.copra-send-btn:hover:not(:disabled) {
    background: #6b2537;
}

/* Copra response options */
.copra-response-options {
    padding: 15px;
    background: #3a2f35;
    border-top: 2px solid #4a3a3f;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copra-response-option {
    padding: 12px 15px;
    background: #4a3a3f;
    border: 2px solid #5a4a4f;
    border-radius: 6px;
    color: #d4a574;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.copra-response-option:hover {
    background: #5a4a4f;
    border-color: #ff69b4;
    color: #ff69b4;
    transform: translateX(5px);
}

/* Copra typing indicator with police siren effect */
.copra-typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 5px 0;
}

.copra-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* Static background + glow — blink is opacity-only. */
    background: #ff69b4;
    box-shadow: 0 0 10px #ff69b4;
    animation: copraSirenBlink 1.5s infinite;
}

.copra-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.copra-typing-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.copra-typing-dot:nth-child(3) {
    animation-delay: 1s;
}

/* opacity-only blink — static pink dot with static pink glow;
   the alternation between pink/tan was retired because animating
   `background` + `box-shadow` triggered a repaint every frame per
   dot × 3 dots. The visual is now a clean blink. */
@keyframes copraSirenBlink {
    0%, 40%, 100% { opacity: 1;   }
    20%           { opacity: 0.35; }
}

/* Redacted app styles */
.redacted-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
    color: #5a4a3a;
}

.redacted-header {
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    padding: 15px 20px;
    border-bottom: 3px solid #8b7355;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redacted-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.redacted-badge {
    font-size: 24px;
}

.redacted-title {
    font-size: 20px;
    font-weight: bold;
    color: #8b2f47;
    letter-spacing: 3px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.redacted-subtitle {
    font-size: 10px;
    color: #8b7355;
    margin-top: 2px;
}

.redacted-user-info {
    text-align: right;
    font-size: 11px;
}

.redacted-user-badge {
    color: #5a4a3a;
    margin-bottom: 3px;
    font-weight: bold;
}

.redacted-user-clearance {
    color: #8b7355;
}

.redacted-nav {
    background: #e8d8b4;
    padding: 0 20px;
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #c4b4a4;
}

.redacted-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #8b7355;
}

.redacted-nav-item:hover {
    background: #d4c4a4;
    color: #5a4a3a;
}

.redacted-nav-item.active {
    color: #8b2f47;
    border-bottom-color: #8b2f47;
    background: #f4e4c0;
    font-weight: bold;
}

.redacted-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.redacted-section {
    display: none;
}

.redacted-section.active {
    display: block;
}

.redacted-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4c4a4;
}

.redacted-section-header h3 {
    margin: 0;
    color: #8b2f47;
    font-size: 16px;
}

.redacted-select {
    background: #fff;
    border: 2px solid #c4b4a4;
    color: #5a4a3a;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-radius: 3px;
}

.redacted-search {
    flex: 1;
    max-width: 400px;
    background: #fff;
    border: 2px solid #c4b4a4;
    color: #5a4a3a;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-radius: 3px;
}

.redacted-cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.redacted-case-card {
    background: #fff;
    border: 3px solid #c4b4a4;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.redacted-case-card:hover {
    border-color: #8b2f47;
    transform: translateY(-2px);
    box-shadow: 4px 4px 10px rgba(139, 47, 71, 0.3);
}

.redacted-case-card.classified {
    background: #f4e4c0;
    border-color: #8b2f47;
    border-style: dashed;
}

.redacted-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.redacted-case-id {
    font-size: 11px;
    color: #8b7355;
    font-weight: bold;
}

.redacted-case-priority {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.redacted-case-priority.priority-high {
    background: #8b2f47;
    color: #fff;
}

.redacted-case-priority.priority-medium {
    background: #d4a574;
    color: #5a4a3a;
}

.redacted-case-priority.priority-low {
    background: #c4b4a4;
    color: #5a4a3a;
}

.redacted-case-priority.priority-critical {
    background: #8b2f47;
    color: #fff;
    animation: redactedPulse 2s infinite;
}

@keyframes redactedPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.redacted-case-title {
    font-size: 14px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 10px;
}

.redacted-case-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    margin-bottom: 10px;
    color: #8b7355;
}

.redacted-case-status {
    color: #5a4a3a;
    font-weight: bold;
}

.redacted-case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding-top: 10px;
    border-top: 1px solid #d4c4a4;
    color: #8b7355;
}

.redacted-case-classification {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.redacted-case-classification.classified {
    background: #8b2f47;
    color: #fff;
}

.redacted-case-classification.confidential {
    background: #d4a574;
    color: #5a4a3a;
}

.redacted-case-classification.public {
    background: #c4b4a4;
    color: #5a4a3a;
}

.redacted-case-classification.top {
    background: #8b2f47;
    color: #fff;
}

.redacted-suspects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redacted-suspect-card {
    background: #fff;
    border: 3px solid #c4b4a4;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.redacted-suspect-card.classified {
    background: #f4e4c0;
    border-color: #8b2f47;
    border-style: dashed;
}

.redacted-suspect-photo {
    width: 60px;
    height: 60px;
    background: #e8d8b4;
    border: 3px solid #c4b4a4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.redacted-suspect-info {
    flex: 1;
}

.redacted-suspect-name {
    font-size: 14px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 5px;
}

.redacted-suspect-status {
    font-size: 12px;
    color: #5a4a3a;
    margin-bottom: 3px;
}

.redacted-suspect-case {
    font-size: 11px;
    color: #8b7355;
}

/* Redacted civilians list */
.redacted-civilians-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redacted-civilian-card {
    background: #fff;
    border: 3px solid #c4b4a4;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.redacted-civilian-photo {
    width: 60px;
    height: 60px;
    background: #e8d8b4;
    border: 3px solid #c4b4a4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.redacted-civilian-info {
    flex: 1;
}

.redacted-civilian-name {
    font-size: 14px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 8px;
}

.redacted-civilian-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.redacted-civilian-detail {
    font-size: 11px;
    color: #5a4a3a;
}

.redacted-civilian-status {
    font-size: 11px;
    color: #8b7355;
    font-style: italic;
}

.redacted-btn-small {
    padding: 6px 12px;
    background: #d4a574;
    border: 2px solid #c4b4a4;
    color: #5a4a3a;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redacted-btn-small:hover {
    background: #8b2f47;
    color: #fff;
    border-color: #8b2f47;
}

.redacted-message-box {
    background: #fff;
    border: 3px solid #8b2f47;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.redacted-message-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.redacted-message-title {
    font-size: 18px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 10px;
}

.redacted-message-text {
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 20px;
    line-height: 1.6;
}

.redacted-btn {
    padding: 10px 24px;
    background: #d4a574;
    border: 2px solid #c4b4a4;
    color: #5a4a3a;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redacted-btn:hover:not(:disabled) {
    background: #8b2f47;
    color: #fff;
    border-color: #8b2f47;
}

.redacted-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.redacted-reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redacted-report-item {
    background: #fff;
    border: 3px solid #c4b4a4;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.redacted-report-item:hover {
    border-color: #8b2f47;
    box-shadow: 3px 3px 8px rgba(139, 47, 71, 0.2);
}

.redacted-report-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.redacted-report-info {
    flex: 1;
}

.redacted-report-title {
    font-size: 13px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 5px;
}

.redacted-report-date {
    font-size: 11px;
    color: #8b7355;
}

.redacted-footer {
    background: #e8d8b4;
    border-top: 3px solid #8b7355;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.redacted-warning {
    color: #8b2f47;
    font-weight: bold;
}

.redacted-timestamp {
    color: #8b7355;
}

/* Redacted icon */
/* ── REDACTED workspace — three-column archive (mockup rework) ──
   Search row + Recent Queries / Results table / Record card.
   These rdx-* rules used to live in an inline style block inside
   renderRedacted(); moved here so the template literal carries no
   CSS comments (a backtick in one silently breaks the literal). */

.redacted-content { min-height: 0; }

.redacted-section#redacted-search.active {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    min-height: 0;
}

/* Search toolbar — the row the mockup puts inside the app. */
.rdx-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #efdfba;
    border: 1px solid #c4b4a4;
    padding: 12px 14px;
}

.rdx-tb-icon { font-size: 15px; color: #8b7355; }

.rdx-toolbar .redacted-search {
    flex: 1 1 260px;
    max-width: none;
    margin: 0;
}

.rdx-tb-label {
    font-size: 11px;
    color: #8b7355;
    letter-spacing: 1px;
    white-space: nowrap;
}

.rdx-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #5a4a3a;
    cursor: pointer;
    white-space: nowrap;
}

.rdx-check input { cursor: pointer; }

.rdx-adv {
    font-size: 11px;
    color: #8b2f47;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 1px dotted #8b2f47;
    white-space: nowrap;
}

.rdx-adv:hover { color: #6b1f37; }

/* ── the three columns ── */
.rdx-ws {
    display: flex;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

.rdx-col-left  { flex: 0 0 190px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.rdx-col-mid   { flex: 1 1 52%;  display: flex; flex-direction: column; min-height: 0; }
.rdx-col-right { flex: 1 1 48%;  display: flex; flex-direction: column; min-height: 0; }

.rdx-panel {
    background: #faf0d8;
    border: 1px solid #c4b4a4;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rdx-panel-h {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8d8b4;
    border-bottom: 1px solid #c4b4a4;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #5a4a3a;
    flex: none;
}

.rdx-panel-h .rdx-count { font-weight: normal; color: #8b7355; letter-spacing: 0; }

.rdx-panel-b { padding: 10px 12px; overflow-y: auto; flex: 1; min-height: 0; }

.rdx-panel-b.rdx-flush { padding: 0; }

/* Recent queries */
.rdx-recent-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #5a4a3a;
    padding: 6px 0;
    border-bottom: 1px dashed #d8c8a8;
    cursor: pointer;
}

.rdx-recent-row:last-child { border-bottom: none; }
.rdx-recent-row:hover { color: #8b2f47; }
.rdx-recent-row .rdx-rq-t { color: #8b7355; flex: none; }
.rdx-recent-row .rdx-rq-q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rdx-empty-note { font-size: 11px; color: #8b7355; font-style: italic; line-height: 1.7; }

/* System notice */
.rdx-notice { font-size: 11px; color: #5a4a3a; line-height: 1.7; }
.rdx-notice b { color: #8b2f47; }
.rdx-notice hr { border: none; border-top: 1px dashed #d8c8a8; margin: 10px 0; }
.rdx-dot { color: #4a7c59; }

/* Results table */
.rdx-table { width: 100%; border-collapse: collapse; font-size: 12px; }

.rdx-table thead th {
    position: sticky;
    top: 0;
    background: #e8d8b4;
    border-bottom: 2px solid #c4b4a4;
    text-align: left;
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #8b7355;
    white-space: nowrap;
}

.rdx-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e4d4b4;
    color: #5a4a3a;
    vertical-align: middle;
}

.rdx-table tr.rdx-result { cursor: pointer; }
.rdx-table tr.rdx-result:hover td { background: #f4e4c0; }
.rdx-table tr.rdx-result.sel td { background: #8b2f47; color: #f4e4c0; }
.rdx-table tr.rdx-result.sel .rdx-type { border-color: #f4e4c0; color: #f4e4c0; background: transparent; }
.rdx-table tr.rdx-result.sel .rdx-st { color: #f4e4c0; }

.rdx-num { color: #8b7355; width: 30px; }
.rdx-nm { font-weight: bold; letter-spacing: 1px; }

.rdx-type {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 6px;
    border: 1px solid #c4b4a4;
    background: #f0e0bc;
    color: #8b7355;
}

.rdx-st { font-size: 10px; letter-spacing: 1px; color: #5a4a3a; white-space: nowrap; }
.rdx-st.restricted, .rdx-st.sealed { color: #8b2f47; font-weight: bold; }
.rdx-st.closed { color: #8b7355; }

.rdx-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #c4b4a4;
    background: #efdfba;
    padding: 7px 12px;
    font-size: 11px;
    color: #8b7355;
    flex: none;
}

.rdx-pg-btn {
    border: 1px solid #c4b4a4;
    background: #f4e4c0;
    color: #8b7355;
    padding: 1px 8px;
    cursor: default;
}

/* Record card — right column */
.rdx-rec-id { margin-left: auto; font-weight: normal; font-size: 11px; color: #8b7355; letter-spacing: 0; }
.rdx-rec-name { color: #8b2f47; }

.rdx-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #c4b4a4;
    margin: 14px 0 12px;
    flex-wrap: wrap;
}

.rdx-tab {
    padding: 7px 12px;
    font-size: 11px;
    color: #8b7355;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    white-space: nowrap;
}

.rdx-tab:hover { color: #5a4a3a; }

.rdx-tab.active {
    color: #8b2f47;
    font-weight: bold;
    background: #f4e4c0;
    border-color: #c4b4a4;
    margin-bottom: -2px;
    border-bottom: 2px solid #f4e4c0;
}

.rdx-seal {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 118px;
    height: 118px;
    border: 3px double #8b2f47;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
    color: #8b2f47;
    transform: rotate(-14deg);
}

.rdx-rec-wrap { position: relative; min-height: 0; }


/* Record card, migrated out of the renderRedacted() inline style
   block so the template literal carries no CSS at all. */

.rdx-scope { font-size: 11px; color: #8b7355; line-height: 1.8; }
.rdx-scope .rdx-d { color: #8b2f47; font-style: italic; }

.rdx-meta { font-size: 10px; color: #8b7355; letter-spacing: 1px; margin-bottom: 10px; }

.rdx-file-card {
    background: #faf0d8;
    border: 1px solid #c4b4a4;
    border-left: 4px solid #8b7355;
    padding: 16px 18px;
    position: relative;
    z-index: 1;
}

.rdx-f-status { font-size: 10px; letter-spacing: 2px; color: #8b7355; margin-bottom: 4px; }

.rdx-f-name {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #5a4a3a;
    margin-bottom: 12px;
}

.rdx-file-row {
    display: flex;
    gap: 12px;
    border-top: 1px dashed #c4b4a4;
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.7;
}

.rdx-file-key { width: 150px; flex: none; color: #8b7355; font-weight: bold; }
.rdx-file-val { color: #5a4a3a; }

.rdx-f-sum {
    margin-top: 12px;
    font-size: 11px;
    color: #8b7355;
    line-height: 1.8;
    font-style: italic;
}

.rdx-bar {
    display: inline-block;
    background: #3a3238;
    color: #3a3238;
    border-radius: 1px;
    user-select: none;
    height: 12px;
    vertical-align: middle;
}

.rdx-lockwall {
    margin-top: 14px;
    border: 2px solid #8b2f47;
    background: rgba(139, 47, 71, 0.06);
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #8b2f47;
    font-weight: bold;
}

.rdx-assoc-link {
    display: inline-block;
    margin-top: 14px;
    cursor: pointer;
    color: #8b2f47;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px dotted #8b2f47;
}

.rdx-assoc-link:hover { color: #6b1f37; }

.rdx-back {
    display: inline-block;
    margin-bottom: 12px;
    cursor: pointer;
    color: #8b7355;
    font-size: 11px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.rdx-back:hover { color: #5a4a3a; }

.rdx-photo { float: right; width: 104px; margin: 0 0 10px 14px; }

.rdx-photo .rdx-p-frame {
    height: 124px;
    position: relative;
    overflow: hidden;
    border: 2px solid #8b7355;
    background:
        radial-gradient(circle 25px at 50% 30%, rgba(42, 32, 24, 0.9) 0%, rgba(42, 32, 24, 0.9) 99%, transparent 100%),
        linear-gradient(180deg, transparent 0%, transparent 38%, rgba(42, 32, 24, 0.9) 52%, rgba(42, 32, 24, 0.9) 100%),
        linear-gradient(180deg, #b8a888 0%, #94846a 100%);
}

.rdx-photo .rdx-p-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg,
        transparent 0px, transparent 20px,
        rgba(90, 74, 58, 0.25) 20px, rgba(90, 74, 58, 0.25) 21px);
}

.rdx-photo .rdx-p-cap {
    font-size: 9px;
    letter-spacing: 1px;
    color: #8b7355;
    text-align: center;
    margin-top: 4px;
}


/* Toolbar fits on ONE row: the search input carries the default
   flex min-width:auto, so it refused to shrink and pushed the scope
   dropdown and the checkboxes onto extra lines (measured: 6 lines,
   109px tall, eating the workspace height). min-width:0 lets it
   compress; nowrap keeps the mockup's single row. */

.rdx-toolbar {
    gap: 10px;
    padding: 10px 12px;
    flex-wrap: nowrap;
}

.rdx-toolbar .redacted-search {
    flex: 1 1 200px;
    min-width: 0;
    padding: 7px 10px;
    font-size: 12px;
}

.rdx-toolbar .redacted-btn { padding: 7px 14px; font-size: 11px; }
.rdx-toolbar .redacted-select { padding: 5px 8px; font-size: 11px; }
.rdx-tb-label { font-size: 10px; }
.rdx-check { font-size: 10px; gap: 5px; }
.rdx-adv { font-size: 10px; }

/* Give the workspace back some height. */
.redacted-header { padding: 10px 20px; }
.redacted-nav-item { padding: 9px 16px; }
.redacted-content { padding: 14px 16px; }
.redacted-footer { padding: 8px 20px; }


/* Search lives in the tab ribbon now, with a dropdown under it.
   The six tabs measured 1187px of a 1431px ribbon, leaving 189px —
   too little for a field, so the labels lost their second word. */

.redacted-nav { align-items: center; }
.redacted-nav-item { font-size: 12px; padding: 9px 13px; }

.rdx-navsearch {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4e4c0;
    border: 1px solid #c4b4a4;
    padding: 4px 8px;
}

.rdx-nav-input {
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #5a4a3a;
    width: 200px;
    min-width: 0;
    outline: none;
}

.rdx-scope-btn { cursor: pointer; color: #8b7355; font-size: 11px; padding: 0 2px; }
.rdx-scope-btn:hover { color: #8b2f47; }

.rdx-sugg-panel {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 340px;
    background: #faf0d8;
    border: 1px solid #8b7355;
    box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 60;
}

.rdx-sugg-list { max-height: 232px; overflow-y: auto; }

.rdx-sugg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 11px;
    border-bottom: 1px solid #e4d4b4;
}

.rdx-sugg:hover { background: #f4e4c0; }
.rdx-sg-name { flex: 1; font-weight: bold; letter-spacing: 1px; color: #5a4a3a; }
.rdx-sugg-none { padding: 11px; font-size: 11px; color: #8b7355; font-style: italic; }

.rdx-sugg-foot {
    border-top: 1px solid #c4b4a4;
    background: #efdfba;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rdx-sf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #8b7355;
}

.rdx-sf-row .redacted-select { padding: 3px 6px; font-size: 11px; }
.rdx-sugg-foot .rdx-check { font-size: 10px; }
.rdx-sugg-foot .rdx-adv { font-size: 10px; align-self: flex-start; }


/* A scene's own options offered inside the dropdown (Day 11's three
   names). Same rows as a suggestion, with a sub-line and a spent state. */

.rdx-sugg-head {
    padding: 9px 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #8b7355;
    background: #efdfba;
    border-bottom: 1px solid #c4b4a4;
}

.rdx-sugg-choice { flex-direction: column; align-items: flex-start; gap: 3px; }
.rdx-sugg-choice .rdx-sg-name { font-size: 12px; letter-spacing: 2px; }

.rdx-sg-sub {
    font-size: 10px;
    font-style: italic;
    letter-spacing: 1px;
    color: #8b7355;
}

.rdx-sugg-done { opacity: 0.45; cursor: default; pointer-events: none; }
.rdx-sugg-done .rdx-sg-sub { color: #8b2f47; }


.computer-icon-redacted {
    background: url('../assets/images/pc/icons/redacted.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* MoanoStore app styles */
.moanostore-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.moanostore-header {
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    padding: 15px 20px;
    border-bottom: 3px solid #8b7355;
    display: flex;
    align-items: center;
    gap: 20px;
}

.moanostore-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moanostore-icon {
    font-size: 24px;
}

.moanostore-title {
    font-size: 18px;
    font-weight: bold;
    color: #8b2f47;
}

.moanostore-search-bar {
    flex: 1;
    display: flex;
    gap: 5px;
    max-width: 500px;
}

.moanostore-search-input {
    flex: 1;
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #c4b4a4;
    color: #5a4a3a;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-radius: 4px;
}

.moanostore-search-btn {
    padding: 8px 16px;
    background: #d4a574;
    border: 2px solid #c4b4a4;
    color: #5a4a3a;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.moanostore-search-btn:hover {
    background: #8b2f47;
    color: #fff;
    border-color: #8b2f47;
}

.moanostore-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #8b7355;
    border-radius: 4px;
}

.moanostore-balance-label {
    font-size: 12px;
    color: #8b7355;
}

.moanostore-balance-amount {
    font-size: 14px;
    font-weight: bold;
    color: #8b2f47;
}

.moanostore-nav {
    background: #e8d8b4;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #c4b4a4;
}

.moanostore-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #8b7355;
}

.moanostore-nav-item:hover {
    background: #d4c4a4;
    color: #5a4a3a;
}

.moanostore-nav-item.active {
    color: #8b2f47;
    border-bottom-color: #8b2f47;
    font-weight: bold;
}

.moanostore-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.moanostore-banner {
    background: linear-gradient(135deg, #8b2f47 0%, #6b1f37 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

.moanostore-banner-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.moanostore-banner-text {
    font-size: 13px;
    opacity: 0.9;
}

.moanostore-category-section {
    margin-bottom: 16px;
}

.moanostore-category-title {
    font-size: 15px;
    font-weight: bold;
    color: #8b2f47;
    border-bottom: 1px solid #d4a574;
    padding-bottom: 4px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.moanostore-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.moanostore-app-card {
    background: #fff;
    border: 3px solid #c4b4a4;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.moanostore-app-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px rgba(139, 47, 71, 0.2);
    border-color: #8b2f47;
}

.moanostore-app-icon {
    font-size: 48px;
    text-align: center;
    padding: 10px;
    background: #f4e4c0;
    border-radius: 8px;
    overflow: hidden;
    /* a fixed plate — the 1024px icon PNGs (width:100%) stretched every
       card to 735px, so a scene's second card sat two screens down and
       its button never fit the 385px shelf (2026-10-03) */
    width: 104px;
    height: 104px;
    box-sizing: border-box;
    margin: 0 auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moanostore-app-icon img {
    transform: scale(1.75);
}

.moanostore-app-info {
    flex: 1;
}

.moanostore-app-name {
    font-size: 16px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 4px;
}

.moanostore-app-category {
    font-size: 11px;
    color: #8b7355;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.moanostore-app-rating {
    font-size: 13px;
    color: #d4a574;
    margin-bottom: 4px;
}

.moanostore-app-downloads {
    font-size: 11px;
    color: #8b7355;
    margin-bottom: 10px;
}

.moanostore-app-description {
    font-size: 12px;
    color: #5a4a3a;
    line-height: 1.5;
}

.moanostore-app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid #e8d8b4;
}

.moanostore-app-price {
    font-size: 16px;
    font-weight: bold;
    color: #8b2f47;
}

.moanostore-install-btn {
    padding: 8px 20px;
    background: #8b2f47;
    color: #fff;
    border: 2px solid #8b2f47;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.moanostore-install-btn:hover {
    background: #6b1f37;
    border-color: #6b1f37;
}

.moanostore-install-btn.installed {
    background: #c4b4a4;
    border-color: #c4b4a4;
    color: #5a4a3a;
    cursor: default;
}

.moanostore-install-btn.installed:hover {
    background: #c4b4a4;
    border-color: #c4b4a4;
}

.moanostore-footer {
    background: #e8d8b4;
    border-top: 3px solid #8b7355;
    padding: 12px 20px;
    text-align: center;
    font-size: 11px;
    color: #8b7355;
}

/* MoanoStore icon */
.computer-icon-moanostore {
    background: url('../assets/images/pc/icons/moanostore.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

/* WayBare icon */
.computer-icon-waybare {
    background: url('../assets/images/pc/icons/waybare.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
}

.computer-icon-waybare::after {
    content: none;
}

/* Drive icon */
.computer-icon-drive {
    background: linear-gradient(135deg, #8b7355 0%, #6b5a45 100%);
    border: 2px solid #5a4a3a;
    position: relative;
}

.drive-letter {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Drive window styles */
.drive-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.drive-header {
    padding: 20px;
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    border-bottom: 3px solid #8b7355;
}

.drive-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.drive-title .computer-icon-image {
    flex-shrink: 0;
}

.drive-info {
    flex: 1;
}

.drive-name {
    font-size: 18px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.drive-capacity {
    font-size: 13px;
    color: #8b7355;
}

.drive-bar {
    height: 24px;
    background: #c4b4a4;
    border: 3px solid #8b7355;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}

.drive-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b2f47 0%, #d4a574 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 47, 71, 0.5);
}

.drive-folders {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    overflow-y: auto;
    background: #f4e4c0;
}

.drive-folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drive-folder-item:hover {
    background: rgba(139, 47, 71, 0.1);
}

.drive-folder-item .computer-icon-image {
    width: 60px;
    height: 60px;
}

.drive-folder-name {
    font-size: 11px;
    color: #5a4a3a;
    text-align: center;
    font-weight: normal;
    max-width: 80px;
    word-wrap: break-word;
}

/* Installation animation */
.install-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 24, 21, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.install-animation-box {
    background: #f4e4c0;
    border: 4px solid #8b7355;
    border-radius: 8px;
    padding: 30px;
    width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.install-animation-title {
    font-size: 18px;
    font-weight: bold;
    color: #8b2f47;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.install-progress-bar {
    height: 30px;
    background: #d4c4a4;
    border: 3px solid #c4b4a4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.install-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8b2f47 0%, #d4a574 100%);
    transition: width 0.1s linear;
}

.install-files-scroll {
    background: #fff;
    border: 2px solid #c4b4a4;
    border-radius: 4px;
    padding: 15px;
    height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.install-file {
    font-size: 12px;
    color: #8b7355;
    margin-bottom: 8px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* Wallpaper changer styles */
.wallpaper-changer {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
}

.wallpaper-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #e8d8b4;
    border-bottom: 2px solid #8b7355;
}

.wallpaper-categories {
    display: flex;
    gap: 8px;
}

.wallpaper-category-btn {
    padding: 6px 14px;
    background: #d4c4a0;
    border: 2px solid #8b7355;
    color: #2a2025;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.wallpaper-category-btn:hover {
    background: #c4b490;
}

.wallpaper-category-btn.active {
    background: #8b7355;
    color: #f4e4c0;
}

.wallpaper-default-btn {
    padding: 6px 14px;
    background: #c4a87a;
    border: 2px solid #8b7355;
    color: #2a2025;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallpaper-default-btn:hover {
    background: #b49868;
}

.wallpaper-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
    flex: 1;
    align-content: start;
    overflow-y: auto;
    min-height: 0;
}

.wallpaper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.wallpaper-item:hover {
    background: #e8d8b4;
    border-color: #8b7355;
}

.wallpaper-preview {
    width: 100%;
    aspect-ratio: 16/10;
    border: 2px solid #8b7355;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.wallpaper-name {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #2a2025;
    text-align: center;
}

.wallpaper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
    border-top: 1px solid #c4b490;
    background: #e8d8b4;
    flex-shrink: 0;
}

.wallpaper-page-btn {
    width: 28px;
    height: 28px;
    background: #d4c4a0;
    border: 2px solid #8b7355;
    color: #2a2025;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallpaper-page-btn:hover:not(:disabled) {
    background: #8b7355;
    color: #f4e4c0;
}

.wallpaper-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wallpaper-page-info {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #5F5449;
    letter-spacing: 1px;
}

.computer-menu-time {
    color: #f4e4c0;
    font-size: 12px;
}

/* Desktop icons grid */
.computer-desktop {
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr 180px;
    grid-template-areas: "left middle right";
    grid-gap: 20px;
    flex: 1;
    align-content: start;
}

.desktop-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);
    grid-auto-rows: 100px;
    grid-auto-flow: row;
    grid-gap: 10px 15px;
    align-content: start;
}

.desktop-area-left {
    grid-area: left;
    grid-template-columns: 90px;
}

.desktop-area-middle {
    grid-area: middle;
    grid-template-columns: repeat(auto-fill, 90px);
}

.desktop-area-right {
    grid-area: right;
    grid-template-columns: 90px;
}

.computer-desktop-icon {
    /* 84px: wide enough that "Blackletter" / "MoanoStore" keep one
       line — 70px was forcing mid-word breaks. */
    width: 84px;
    height: 90px;
    text-align: center;
    cursor: pointer;
    padding: 10px 5px;
    border-radius: 3px;
    transition: all 0.2s;
}

.computer-desktop-icon:hover {
    background: rgba(255,255,255,0.3);
}

.computer-desktop-icon.selected {
    background: rgba(139,115,85,0.3);
    border: 1px dashed #8b7355;
}

.computer-icon-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    position: relative;
}

.computer-icon-image .computer-icon-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
}

/* Different icon styles */
.computer-icon-folder {
    background: #c4b490;
    border: 2px solid #8b7355;
    border-radius: 2px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
}

.computer-icon-folder::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 20px;
    height: 8px;
    background: #c4b490;
    border: 2px solid #8b7355;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.computer-icon-mail {
    background: url('../assets/images/pc/icons/blackletter.png') center/cover no-repeat;
    border: none;
    position: relative;
}

.computer-icon-money {
    background: url('../assets/images/pc/icons/paydirty.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-money::after {
    content: none;
}

.computer-icon-browser {
    background: url('../assets/images/pc/icons/hardwork.png') center/contain no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-browser::after {
    content: none;
}

.computer-icon-bbs {
    background: #2a2025;
    border: 2px solid #8b7355;
    position: relative;
}

.computer-icon-bbs::after {
    content: '•••';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-size: 16px;
    letter-spacing: 2px;
}

.computer-icon-notepad {
    background: #fff;
    border: 2px solid #8b7355;
    position: relative;
}

.computer-icon-notepad::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #8b7355;
    box-shadow: 0 5px 0 #8b7355, 0 10px 0 #8b7355, 0 15px 0 #8b7355;
}

.computer-icon-game {
    background: #4a3f38;
    border: 2px solid #8b7355;
    position: relative;
}

.computer-icon-game::after {
    content: '♠♥♣♦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f4e4c0;
    font-size: 10px;
}

.computer-icon-gta {
    background: url('../assets/images/pc/icons/grand.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-gta::after {
    content: none;
}

.computer-icon-nftitties {
    background: url('../assets/images/pc/icons/nftittis.png') center/160% no-repeat;
    border: none;
    overflow: hidden;
    position: relative;
}

.computer-icon-nftitties::after {
    content: none;
}

.computer-icon-label {
    font-size: 10px;
    color: #2a2025;
    line-height: 1.2;
    /* Wrap at spaces; break inside a word only as a last resort. */
    word-break: normal;
    overflow-wrap: break-word;
}

/* Wallpaper theme: dark background → light text + dark shadow */
.wallpaper-dark .computer-icon-label {
    color: #e8e0d4;
    text-shadow:
        1px 1px 3px rgba(0,0,0,0.8),
        0 0 8px rgba(0,0,0,0.5);
}

/* Wallpaper theme: light background → dark text + light shadow */
.wallpaper-light .computer-icon-label {
    color: #2a2025;
    text-shadow:
        1px 1px 2px rgba(255,255,255,0.9),
        0 0 6px rgba(255,255,255,0.5);
}

.computer-icon-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #f4e4c0;
    color: #8b1538;
    font-size: 9px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    padding: 3px 5px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8b7355;
    /* Static base shadow — no animated shadow on the element itself */
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: badgePulse 2s infinite;
    /* Promote to a compositor layer so the transform: scale
       animation runs on the compositor thread (GPU), not on
       the main thread. Composite-only = free per frame. */
    will-change: transform;
}
/* Glow layer — same visual as the animated box-shadow used to be,
   but as a pseudo-element whose OPACITY is animated instead of the
   parent's box-shadow. box-shadow itself is static here; only alpha
   moves. GPU-composited, essentially free per frame. */
.computer-icon-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        3px 3px 6px rgba(0,0,0,0.4),
        inset 0 0 3px rgba(139, 69, 19, 0.2);
    opacity: 0;
    animation: badgePulseGlow 2s infinite;
    /* Compositor-layer hint — opacity animation runs on the GPU. */
    will-change: opacity;
}

/* transform-only pulse on the element itself. */
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}
/* opacity-only glow surface on the ::after. */
@keyframes badgePulseGlow {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

/* Window (for opened apps) */
.computer-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 85%;
    background: #f4e4c0;
    border: 2px solid #8b7355;
    box-shadow:
        8px 8px 20px rgba(0,0,0,0.4),
        inset 0 0 50px rgba(139, 69, 19, 0.05);
    display: none;
    z-index: 100;
}

.computer-window.active {
    display: block;
}

.computer-window-header {
    background: linear-gradient(180deg, #a08060 0%, #8b7355 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #6b5d54;
    cursor: move;
}

.computer-window-content {
    height: calc(100% - 40px);
    overflow: hidden;
}

.computer-window-title {
    color: #f4e4c0;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.computer-window-controls {
    display: flex;
    gap: 8px;
}

.computer-window-btn {
    width: 14px;
    height: 14px;
    background: #d4c4a0;
    border: 1px solid #6b5d54;
    cursor: pointer;
    position: relative;
}

.computer-window-btn:hover {
    background: #e8d8b4;
}

.computer-window-btn.close::after {
    content: 'X';
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 10px;
    color: #2a2025;
}

/* Email client content */
.computer-email-client {
    display: flex;
    height: 100%;
}

.computer-email-folders {
    width: 150px;
    background: #e8d8b4;
    border-right: 1px solid #8b7355;
    padding: 10px;
}

.computer-email-folder {
    padding: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.computer-email-folder:hover {
    background: #d4c4a0;
}

.computer-email-folder.active {
    background: #c4b490;
    font-weight: bold;
}

.computer-folder-count {
    float: right;
    color: #8b7355;
    font-weight: normal;
}

.computer-email-list {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    /* No max-height: the paper-white list runs the full window
       height — capping it left the window's tan base showing
       below the last letter. */
    min-height: 0;
}

.computer-email-item {
    padding: 10px;
    border-bottom: 1px solid #e8d8b4;
    cursor: pointer;
    transition: background 0.2s;
}

.computer-email-item:hover {
    background: #f4e4c0;
}

.computer-email-item.unread {
    font-weight: bold;
}

.computer-email-item.selected {
    background: #e8d8b4;
}

.computer-email-from {
    font-size: 12px;
    color: #2a2025;
    margin-bottom: 3px;
}

.computer-email-subject {
    font-size: 13px;
    color: #4a3f38;
    margin-bottom: 2px;
}

.computer-email-preview {
    font-size: 11px;
    color: #8b7355;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.computer-email-date {
    float: right;
    font-size: 10px;
    color: #8b7355;
}

.computer-thread-count {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;
    background: #8b7355;
    color: #f4e4c0;
    font-size: 10px;
    border-radius: 3px;
    font-weight: bold;
}

/* Email preview pane — the letter itself. Was a 500px floating
   card (taller than wide, white, cramped); now it reads like a
   LETTER: wide as the window sensibly allows, comfortable line
   length, the client's own aged paper instead of printer white,
   and it uses the window's height instead of a fixed 450px. */
.computer-email-preview-pane {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: min(780px, calc(100% - 70px));
    max-height: calc(100% - 120px);
    background:
        radial-gradient(ellipse at 30% 0%, rgba(139, 115, 85, 0.06), transparent 60%),
        #f9f1dc;
    border: 2px solid #8b7355;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
    padding: 26px 36px 32px;
    display: none;
    z-index: 200;
    overflow-y: auto;
}

.computer-email-preview-pane.active {
    display: block;
}

.computer-preview-header {
    border-bottom: 1px solid #8b7355;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.computer-preview-from {
    font-weight: bold;
    margin-bottom: 5px;
}

.computer-preview-subject {
    font-size: 18px;
    color: #2a2025;
    margin-bottom: 5px;
}

.computer-preview-date {
    font-size: 11px;
    color: #8b7355;
}

.computer-preview-body {
    font-size: 13px;
    line-height: 1.7;
    color: #2a2025;
    white-space: pre-wrap;
    /* a letter's measure — never wall-to-wall on a wide pane */
    max-width: 62ch;
}

.computer-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #8b7355;
}

/* PayDirty Job Search content */
.computer-paydirty-content {
    padding: 20px;
    background: linear-gradient(180deg, #ffb6c1 0%, #ffc0cb 100%);
    height: 100%;
    overflow-y: auto;
}

.computer-paydirty-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff69b4;
}

.computer-paydirty-title {
    font-size: 20px;
    margin-bottom: 5px;
    letter-spacing: 3px;
    color: #8b1538;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.computer-job-listing {
    background: #fff;
    border: 1px solid #ff69b4;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.computer-job-listing:hover {
    transform: translateX(5px);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.2);
}

.computer-job-title {
    font-weight: bold;
    color: #8b1538;
    margin-bottom: 5px;
}

.computer-job-company {
    color: #ff69b4;
    font-size: 12px;
    margin-bottom: 5px;
}

.computer-job-pay {
    color: #00a000;
    font-weight: bold;
    float: right;
}

.computer-job-description {
    font-size: 11px;
    color: #4a3f38;
    line-height: 1.4;
}

.computer-job-requirements {
    font-size: 10px;
    color: #8b7355;
    margin-top: 5px;
    font-style: italic;
}

/* Folder window */
.computer-folder-window {
    padding: 20px;
    background: #fff;
    height: 100%;
    overflow-y: auto;
}

.computer-folder-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.computer-file-item-grid {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.computer-file-item-grid:hover {
    background: #f4e4c0;
    border-color: #8b7355;
}

.computer-file-icon-large {
    width: 40px;
    height: 50px;
    margin: 0 auto 5px;
    background: #f4e4c0;
    border: 1px solid #8b7355;
    position: relative;
}

.computer-file-icon-large::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #8b7355;
    border-bottom: 1px solid #8b7355;
}

.computer-file-name-grid {
    font-size: 10px;
    color: #2a2025;
    word-wrap: break-word;
}

/* HardWork (like glassdoor) */
.computer-browser-content {
    padding: 20px;
    background: #fff;
    height: 100%;
    overflow-y: auto;
}

.computer-site-header {
    background: #4169e1;
    color: white;
    padding: 15px;
    margin: -20px -20px 20px -20px;
}

.computer-site-title {
    font-size: 18px;
    font-weight: bold;
}

.computer-site-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.computer-review-item {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.computer-review-company {
    font-weight: bold;
    color: #2a2025;
    margin-bottom: 5px;
}

.computer-review-rating {
    color: #ffa500;
    margin-bottom: 8px;
}

.computer-review-text {
    font-size: 13px;
    color: #4a3f38;
    line-height: 1.4;
}

.computer-review-date {
    font-size: 11px;
    color: #8b7355;
    margin-top: 8px;
}

/* Status bar */
.computer-status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #8b7355;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #6b5d54;
}

.computer-status-text {
    color: #f4e4c0;
    font-size: 11px;
}

/* Coffee mug ring */
.computer-coffee-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        transparent 30%,
        rgba(101, 67, 33, 0.1) 35%,
        rgba(101, 67, 33, 0.15) 40%,
        transparent 50%
    );
    top: 250px;
    right: 100px;
    z-index: 10;
}


/* Email thread/chain display */
.computer-email-thread {
    margin-top: 15px;
}

.computer-email-thread-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f4e4c0;
    border: 2px solid #8b7355;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    position: relative;
}

.computer-email-thread-item.sent {
    background: #e8d8b4;
    margin-left: 40px;
}

.computer-email-thread-item.sent::before {
    content: '→';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #8b7355;
}

.computer-email-thread-item.received {
    background: #fff;
    margin-right: 40px;
}

.computer-email-thread-item.received::before {
    content: '←';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #8b7355;
}

.computer-thread-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #8b7355;
}

.computer-thread-sender {
    font-weight: bold;
    font-size: 11px;
    color: #2a2025;
    font-family: 'Courier New', monospace;
}

.computer-thread-date {
    font-size: 10px;
    color: #8b7355;
    font-style: italic;
}

.computer-thread-body {
    font-size: 12px;
    line-height: 1.6;
    color: #2a2025;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

/* Email reply section */
.computer-reply-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #8b7355;
}

.computer-reply-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2a2025;
    font-size: 12px;
}

.computer-reply-btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    background: #e8d8b4;
    border: 1px solid #8b7355;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-align: left;
    transition: all 0.2s;
}

.computer-reply-btn:hover {
    background: #d4c4a0;
    transform: translateX(3px);
}

/* Email actions */
.computer-email-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #8b7355;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.computer-email-action-btn {
    padding: 8px 15px;
    background: #c4b490;
    border: 1px solid #8b7355;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    transition: all 0.2s;
}

.computer-email-action-btn:hover {
    background: #a08060;
}

.computer-email-action-btn.delete-btn {
    background: #d4a0a0;
    color: #8b1538;
}

.computer-email-action-btn.delete-btn:hover {
    background: #c08080;
}

/* Category dropdown */
.computer-email-category-dropdown {
    position: relative;
}

.computer-email-category-dropdown:hover .computer-category-menu {
    display: block;
}

.computer-category-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #f4e4c0;
    border: 2px solid #8b7355;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    min-width: 120px;
    margin-bottom: 5px;
    z-index: 100;
}

.computer-category-option {
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #2a2025;
    cursor: pointer;
    border-bottom: 1px solid #d4c4a0;
}

.computer-category-option:last-child {
    border-bottom: none;
}

.computer-category-option:hover {
    background: #e8d8b4;
}

/* Email notification container */
#computer-notification-container {
    position: absolute;
    bottom: 35px;
    right: 12px;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

/* Email notification popup — MoanOS terminal style */
.computer-email-notification {
    position: relative;
    width: 300px;
    margin: 0;
    background: linear-gradient(180deg, #1a1612 0%, #100c08 100%);
    border: 2px solid #8b7355;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6),
                0 0 8px rgba(139, 115, 85, 0.25),
                inset 0 1px 0 rgba(212, 196, 160, 0.15);
    padding: 12px 14px 12px 12px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    font-family: 'Courier New', monospace;
}

.computer-email-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 196, 160, 0.4) 50%,
        transparent 100%);
    pointer-events: none;
}

.computer-email-notification.active {
    opacity: 1;
    transform: translateX(0);
}

.computer-notification-icon {
    font-size: 26px;
    flex-shrink: 0;
    filter: sepia(0.4) saturate(1.2) brightness(0.95);
    align-self: flex-start;
    line-height: 1;
}

.computer-notification-content {
    flex: 1;
    min-width: 0;
}

.computer-notification-title {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #d4c4a0;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.computer-notification-from {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #c4a87a;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.computer-notification-subject {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #8b7355;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.computer-notification-close {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #8b7355;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.computer-notification-close:hover {
    color: #d4c4a0;
}

/* Zipper App Styles */
.zipper-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.zipper-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    border-bottom: 2px solid #8b7355;
}

.zipper-btn {
    padding: 6px 12px;
    background: #d4a574;
    border: 2px solid #8b7355;
    color: #2a2025;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.zipper-btn:hover:not(.disabled) {
    background: #b48554;
}

.zipper-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zipper-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.zipper-header {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 1fr 1.2fr;
    gap: 10px;
    padding: 10px;
    background: #d4c4a4;
    border: 2px solid #8b7355;
    margin-bottom: 2px;
    font-weight: bold;
    font-size: 12px;
    color: #2a2025;
}

.zipper-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zipper-item {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 1fr 1.2fr;
    gap: 10px;
    padding: 10px;
    background: #e8d8b4;
    border: 2px solid #c4b4a4;
    transition: all 0.2s;
}

.zipper-item:hover {
    background: #d4c4a4;
    border-color: #8b7355;
}

.zipper-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.zipper-icon {
    font-size: 18px;
}

.zipper-item-folder,
.zipper-item-size,
.zipper-item-files,
.zipper-item-date {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #4a453f;
}

.zipper-item-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.zipper-extract-btn,
.zipper-view-btn {
    padding: 4px 10px;
    background: #8b2f47;
    border: 2px solid #6b1f37;
    color: #f4e4c0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.zipper-extract-btn:hover,
.zipper-view-btn:hover {
    background: #6b1f37;
}

.zipper-footer {
    padding: 8px 10px;
    background: linear-gradient(180deg, #d4c4a4 0%, #e8d8b4 100%);
    border-top: 2px solid #8b7355;
}

.zipper-status {
    font-size: 11px;
    color: #4a453f;
}

/* Zipper View Window */
.zipper-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.zipper-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    border-bottom: 2px solid #8b7355;
}

.zipper-view-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zipper-view-path {
    font-size: 14px;
    font-weight: bold;
    color: #2a2025;
}

.zipper-view-count {
    font-size: 11px;
    color: #4a453f;
}

.zipper-extract-all-btn {
    padding: 8px 16px;
    background: #8b2f47;
    border: 2px solid #6b1f37;
    color: #f4e4c0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.zipper-extract-all-btn:hover {
    background: #6b1f37;
}

.zipper-view-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zipper-view-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #e8d8b4;
    border: 2px solid #c4b4a4;
    transition: all 0.2s;
}

.zipper-view-item:hover {
    background: #d4c4a4;
    border-color: #8b7355;
}

.zipper-file-icon {
    font-size: 20px;
}

.zipper-file-name {
    font-size: 13px;
    color: #2a2025;
}

/* Typewriter App Styles */
.typewriter-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.typewriter-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    border-bottom: 2px solid #8b7355;
}

.typewriter-btn {
    padding: 6px 12px;
    background: #d4a574;
    border: 2px solid #8b7355;
    color: #2a2025;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.typewriter-btn:hover:not(.disabled) {
    background: #b48554;
}

.typewriter-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.typewriter-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.typewriter-sidebar {
    width: 250px;
    background: #e8d8b4;
    border-right: 2px solid #8b7355;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.typewriter-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.typewriter-sidebar-title {
    padding: 12px;
    background: #d4c4a4;
    border-bottom: 2px solid #8b7355;
    font-weight: bold;
    font-size: 13px;
    color: #2a2025;
}

.typewriter-doc-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.typewriter-doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 3px;
    background: #f4e4c0;
    border: 2px solid #d4c4a4;
    cursor: pointer;
    transition: all 0.2s;
}

.typewriter-doc-item:hover {
    background: #d4c4a4;
    border-color: #8b7355;
}

.typewriter-doc-item.active {
    background: #8b2f47;
    border-color: #6b1f37;
}

.typewriter-doc-item.active .typewriter-doc-name,
.typewriter-doc-item.active .typewriter-doc-path {
    color: #f4e4c0;
}

.typewriter-doc-icon {
    font-size: 20px;
}

.typewriter-doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.typewriter-doc-name {
    font-size: 12px;
    font-weight: bold;
    color: #2a2025;
}

.typewriter-doc-path {
    font-size: 10px;
    color: #6b5d54;
}

.typewriter-content {
    flex: 1;
    overflow-y: auto;
    background: #f4e4c0;
}

.typewriter-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.typewriter-welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.typewriter-welcome-title {
    font-size: 24px;
    font-weight: bold;
    color: #2a2025;
    margin-bottom: 10px;
}

.typewriter-welcome-text {
    font-size: 14px;
    color: #6b5d54;
    margin-bottom: 20px;
}

.typewriter-welcome-stats {
    font-size: 12px;
    color: #8b7355;
    padding: 8px 16px;
    background: #e8d8b4;
    border: 2px solid #d4c4a4;
    border-radius: 4px;
}

.typewriter-document {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.typewriter-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    border-bottom: 2px solid #8b7355;
}

.typewriter-doc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #2a2025;
}

.typewriter-doc-location {
    font-size: 12px;
    color: #6b5d54;
}

.typewriter-doc-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #faf4e4;
}

.typewriter-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #2a2025;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* VelvetScreen App Styles */
.velvetscreen-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #2a2025;
    font-family: 'Courier New', monospace;
}

.velvetscreen-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, #3a3035 0%, #2a2025 100%);
    border-bottom: 2px solid #8b7355;
}

.velvetscreen-btn {
    padding: 6px 12px;
    background: #8b2f47;
    border: 2px solid #6b1f37;
    color: #f4e4c0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.velvetscreen-btn:hover:not(.disabled) {
    background: #6b1f37;
}

.velvetscreen-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.velvetscreen-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.velvetscreen-sidebar {
    width: 250px;
    background: #3a3035;
    border-right: 2px solid #8b7355;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.velvetscreen-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.velvetscreen-sidebar-title {
    padding: 12px;
    background: #2a2025;
    border-bottom: 2px solid #8b7355;
    font-weight: bold;
    font-size: 13px;
    color: #f4e4c0;
}

.velvetscreen-video-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.velvetscreen-video-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 3px;
    background: #2a2025;
    border: 2px solid #4a453f;
    cursor: pointer;
    transition: all 0.2s;
}

.velvetscreen-video-item:hover {
    background: #4a453f;
    border-color: #8b7355;
}

.velvetscreen-video-item.active {
    background: #8b2f47;
    border-color: #d4a574;
}

.velvetscreen-video-icon {
    font-size: 20px;
}

.velvetscreen-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.velvetscreen-video-name {
    font-size: 12px;
    font-weight: bold;
    color: #f4e4c0;
}

.velvetscreen-video-path {
    font-size: 10px;
    color: #8b7355;
}

.velvetscreen-player {
    flex: 1;
    background: #2a2025;
    overflow: hidden;
}

.velvetscreen-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.velvetscreen-welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.velvetscreen-welcome-title {
    font-size: 24px;
    font-weight: bold;
    color: #f4e4c0;
    margin-bottom: 10px;
}

.velvetscreen-welcome-text {
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 20px;
}

.velvetscreen-welcome-stats {
    font-size: 12px;
    color: #d4a574;
    padding: 8px 16px;
    background: #3a3035;
    border: 2px solid #4a453f;
    border-radius: 4px;
}

.velvetscreen-player-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.velvetscreen-video-screen {
    flex: 1;
    background: #1a1815;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #8b7355;
}

.velvetscreen-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2025 0%, #1a1815 100%);
}

.velvetscreen-play-icon {
    font-size: 80px;
    color: #8b2f47;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(139, 47, 71, 0.5);
}

.velvetscreen-video-title {
    font-size: 18px;
    color: #f4e4c0;
    font-weight: bold;
}

.velvetscreen-controls {
    background: #3a3035;
    border-bottom: 2px solid #8b7355;
    padding: 15px;
}

.velvetscreen-progress-bar {
    position: relative;
    height: 8px;
    background: #2a2025;
    border: 2px solid #4a453f;
    margin-bottom: 15px;
    cursor: pointer;
}

.velvetscreen-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b2f47 0%, #d4a574 100%);
    transition: width 0.3s;
}

.velvetscreen-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #f4e4c0;
    border: 2px solid #8b2f47;
    border-radius: 50%;
    cursor: pointer;
}

.velvetscreen-control-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.velvetscreen-control-btn {
    padding: 8px 12px;
    background: #8b2f47;
    border: 2px solid #6b1f37;
    color: #f4e4c0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.velvetscreen-control-btn:hover {
    background: #6b1f37;
}

.velvetscreen-play-btn {
    background: #d4a574;
    border-color: #8b7355;
    color: #2a2025;
}

.velvetscreen-play-btn:hover {
    background: #b48554;
}

.velvetscreen-time {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #f4e4c0;
}

.velvetscreen-info {
    background: #2a2025;
    padding: 15px;
}

.velvetscreen-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #f4e4c0;
    margin-bottom: 10px;
}

.velvetscreen-info-icon {
    font-size: 24px;
}

.velvetscreen-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #8b7355;
}

.velvetscreen-info-meta span {
    padding: 4px 8px;
    background: #3a3035;
    border: 1px solid #4a453f;
    border-radius: 3px;
}

/* ===================================
   PDF VIEWER APP
   =================================== */

.pdf-viewer-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #EBE6D8;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.pdf-toolbar {
    padding: 12px 20px;
    background: linear-gradient(180deg, #d4c4a0 0%, #c4b490 100%);
    border-bottom: 3px solid #8B4513;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-filename {
    font-size: 14px;
    font-weight: bold;
    color: #3A3238;
}

.pdf-folder-path {
    font-size: 11px;
    color: #5F5449;
}

.pdf-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    background: #EBE6D8;
}

.pdf-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #8B4513;
}

.pdf-classification {
    background: #8B4513;
    color: #EBE6D8;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 15px;
    border: 2px solid #5F5449;
}

.pdf-title {
    font-size: 26px;
    font-weight: bold;
    color: #3A3238;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pdf-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: #8B4513;
    letter-spacing: 1px;
}

.pdf-body {
    color: #3A3238;
    line-height: 1.7;
}

.pdf-intro {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(139, 69, 19, 0.08);
    border-left: 4px solid #8B4513;
    font-size: 13px;
}

.pdf-task {
    margin-bottom: 25px;
    padding: 20px;
    background: #F4EEE0;
    border: 2px solid #8E7F7F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D4C8BE;
}

.pdf-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #8B4513;
    cursor: not-allowed;
}

.pdf-task-number {
    font-weight: bold;
    color: #8B4513;
    font-size: 13px;
}

.pdf-task-title {
    font-weight: bold;
    color: #3A3238;
    font-size: 13px;
    letter-spacing: 1px;
}

.pdf-task-details {
    padding-left: 26px;
}

.pdf-timeline {
    font-size: 12px;
    font-style: italic;
    color: #5F5449;
    margin-bottom: 10px;
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 12px;
}

.pdf-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8B4513;
    font-weight: bold;
    font-size: 14px;
}

.pdf-note {
    color: #5F5449;
    font-style: italic;
    font-size: 11px;
}

.pdf-warning {
    margin: 30px 0;
    padding: 20px;
    background: rgba(139, 47, 71, 0.1);
    border: 3px solid #8B2F47;
    border-left-width: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #3A3238;
}

.pdf-signature {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #8E7F7F;
    text-align: right;
    font-size: 12px;
}

.pdf-auth {
    margin-bottom: 8px;
    color: #5F5449;
}

.pdf-signature-line {
    display: inline-block;
    min-width: 150px;
    border-bottom: 2px solid #3A3238;
    margin-left: 10px;
}

.pdf-signatory {
    font-weight: bold;
    color: #3A3238;
    font-size: 13px;
    margin-bottom: 4px;
}

.pdf-department {
    color: #5F5449;
    font-size: 11px;
}

.redacted {
    background: #3A3238;
    color: #3A3238;
    padding: 2px 6px;
    border-radius: 2px;
}

/* Styled Confirm Dialog */
.computer-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 24, 21, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.computer-confirm-box {
    background: #f4e4c0;
    border: 4px solid #8b7355;
    border-radius: 8px;
    width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    font-family: 'Courier New', monospace;
}

.computer-confirm-header {
    background: linear-gradient(180deg, #e8d8b4 0%, #d4c4a4 100%);
    padding: 15px 20px;
    border-bottom: 3px solid #8b7355;
}

.computer-confirm-title {
    font-size: 16px;
    font-weight: bold;
    color: #2a2025;
}

.computer-confirm-body {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.computer-confirm-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.computer-confirm-message {
    font-size: 14px;
    line-height: 1.6;
    color: #2a2025;
}

.computer-confirm-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(180deg, #d4c4a4 0%, #e8d8b4 100%);
    border-top: 3px solid #8b7355;
    justify-content: flex-end;
}

.computer-confirm-btn {
    padding: 10px 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid;
    transition: all 0.2s;
}

.computer-confirm-yes {
    background: #8b2f47;
    border-color: #6b1f37;
    color: #f4e4c0;
}

.computer-confirm-yes:hover {
    background: #6b1f37;
}

.computer-confirm-no {
    background: #d4c4a4;
    border-color: #8b7355;
    color: #2a2025;
}

.computer-confirm-no:hover {
    background: #c4b4a4;
}

/* ═══════════════════════════════════════════════════════════════
   CopRA / Moanolith UI pass (relay)
   ─────────────────────────────────────────────────────────────── */

/* 1) BASE SCALE — handled GLOBALLY now: `html { zoom: 1.25 }` in
   fbi-document-style.css scales the entire game (page-zoom
   semantics), the OS included. No per-system transform here —
   that would scale the PC twice. */

/* 2) CopRA: compact by default — a cop ICQ, not a terminal. ~760px
   visual width (610 × 1.25), taller than wide where the screen
   allows, desktop visible around it. Still resizable/maximizable
   like any window. */
#copra-window {
    width: 610px;
    max-width: 94%;
    height: min(92%, 700px);
}

/* 3) BUBBLE WIDTH — cap at ~65ch (~512px layout = 640px visual)
   and wrap; a one-liner must not stretch across the window. */
.copra-message {
    max-width: min(78%, 512px);
    gap: 3px;
}
.copra-message-text {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 4) BURSTS — stacked bubbles in a group: only the last keeps the
   "tail" corner; inner ones square off slightly. Sender renders
   once per group (see _copraMessagesHtml). */
.copra-message .copra-message-bubble:not(:last-child) {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* 5) TWO CHANNELS, TWO SYSTEMS.
   Official (standard/public/group/urgent/routine): lighter paper,
   faint LOGGED watermark — bureaucracy, on the record.
   [PRIVATE]: darker, off-record, chip kept, no stamp. */
.copra-message.copra-official.received .copra-message-bubble {
    background: #4b4034;
    color: #e2cda6;
    position: relative;
    overflow: hidden;
}
.copra-message.copra-official.received .copra-message-bubble::after {
    content: 'LOGGED';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: bold;
    color: rgba(212, 175, 55, 0.14);
    pointer-events: none;
}
.copra-message.copra-official.received .copra-message-text,
.copra-message.copra-official.received .copra-message-time,
.copra-message.copra-official.received .copra-message-type-badge {
    position: relative;
    z-index: 1;
}
.copra-message.copra-offrecord.received .copra-message-bubble {
    background: #241d22;
    color: #c9a0b4;
    border: 1px solid rgba(139, 47, 71, 0.35);
}

/* 6) RADIO CODES — the little code beside a contact's name; the
   away dot goes amber (10-6). */
.copra-contact-code {
    font-size: 9px;
    color: #8b7355;
    margin-left: 6px;
    letter-spacing: 1px;
}
.copra-contact-status.away { background: #d4a017; }

/* ── CopRA over HiddenTities: official business seals the flesh ──
   While the messenger window is up, the site behind it drops out
   of focus — a police channel shouldn't share the desk with a
   gallery. Un-blurs the moment CopRA closes. */
#computer-windows-container #hiddentities-window .computer-window-content {
  transition: filter 0.6s ease;
}
#computer-windows-container:has(#copra-window) #hiddentities-window .computer-window-content {
  filter: blur(10px) saturate(0.55) brightness(0.8);
}

/* CopRA in-chat ✕ during a scripted chain — the same ⧗ hold as
   the window controls and the power button: gold glyph, slow
   pulse, "Do not pull out yet." Read the briefing first. */
.copra-close-chat.copra-close-held {
  pointer-events: none;
  position: relative;
  color: transparent;                    /* the ✕ steps aside */
  border-color: rgba(212, 175, 55, 0.7) !important;
}
.copra-close-chat.copra-close-held::after {
  content: '⧗';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #d4af37; font-size: 12px; line-height: 1;
  animation: copraHoldPulse 2.4s ease-in-out infinite;
}
@keyframes copraHoldPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .copra-close-chat.copra-close-held::after { animation: none; }
}

/* Ch14 epilogue — the power button calls for the click, in the
   same gold "this is the thing" language the map tour uses. */
#computer-power-button.ch14-power-call {
  color: #d4af37 !important;
  border-color: rgba(212, 175, 55, 0.8) !important;
  animation: ch14PowerCall 1.6s ease-in-out infinite;
}
@keyframes ch14PowerCall {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50%      { box-shadow: 0 0 14px 4px rgba(212, 175, 55, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  #computer-power-button.ch14-power-call { animation: none; }
}

/* ── CopRA polish ─────────────────────────────────────────────
   1) The desktop unread number lives INSIDE the icon's corner —
      the copra icon crops with overflow:hidden, and the old
      outside-the-corner badge was getting clipped into nothing. */
.computer-icon-copra .computer-icon-badge {
    bottom: auto;
    top: 3px;
    right: 3px;
}
/* 2) The app's own icon replaces the 👮 emoji in-app. */
.copra-badge img,
.copra-no-chat-icon img {
    display: block;
    border-radius: 4px;
}
.copra-no-chat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
}

/* ── BlackGlass browser: full height — but CLEAR of the OS bar.
   At 96% centered, the window's title bar slid under Moanolith's
   top strip and the power button sat exactly on the ✕: the site
   could not be closed by mouse at all (QA). The window now starts
   below the bar; the close button breathes. ── */
#hiddentities-window.computer-window,
#hiddentities-window {
    height: calc(96% - 44px) !important;
    top: calc(50% + 22px) !important;
}


/* ── Copra attention flash — a desktop icon was clicked while a
      scripted conversation holds the messenger: the window knocks
      instead of dying (openIcon's closeAllWindows is gated). ── */
@keyframes copraAttnKnock {
  0%, 100% { transform: translateX(0); box-shadow: none; }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
  50% { box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.55); }
}
#copra-window.copra-attn {
  animation: copraAttnKnock 0.45s ease;
}


/* ── SlutBook: profile pages ─────────────────────────────────
   Hers is an eight-year-old account wearing a twelve-day-old
   face. The layout is ordinary on purpose; only the dates are
   strange. */
.sb-prof { padding-bottom: 18px; }

.sb-prof-cover {
    height: 104px;
    background: linear-gradient(120deg, #4d0b1d 0%, #8b1538 55%, #a01c44 100%);
    border-bottom: 1px solid #d8c7a8;
}

.sb-prof-cover-off {
    background: linear-gradient(120deg, #2a2025 0%, #4d0b1d 70%, #5a5054 100%);
    filter: saturate(0.6);
}

.sb-prof-head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0 18px;
    margin-top: -46px;
}

.sb-prof-art {
    width: 104px;
    height: 104px;
    flex: none;
    object-fit: cover;
    object-position: 50% 12%;
    background: #2a2025;
    border: 3px solid #f7ece0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sb-prof-art-me { object-position: 50% 30%; }

.sb-prof-id { min-width: 0; padding-bottom: 6px; }

.sb-prof-name {
    font-size: 17px;
    font-weight: bold;
    color: #2a2025;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-prof-handle { font-size: 11px; color: #8b1538; letter-spacing: 1px; }

.sb-prof-bio { font-size: 12px; color: #8b7355; margin-top: 4px; }

.sb-prof-stats {
    display: flex;
    gap: 10px;
    padding: 14px 18px 0;
}

.sb-prof-stat {
    flex: 1;
    padding: 8px 6px;
    text-align: center;
    background: #f7ece0;
    border: 1px solid #d8c7a8;
}

.sb-prof-stat b { display: block; font-size: 16px; color: #8b1538; }
.sb-prof-stat span { font-size: 10px; color: #8b7355; letter-spacing: 1px; }

/* the only line on the page that admits something is wrong */
.sb-prof-warn {
    margin: 14px 18px 0;
    padding: 8px 10px;
    background: #2a2025;
    border-left: 3px solid #8b1538;
    color: #e2d4b8;
    font-size: 11px;
    letter-spacing: 1px;
}

.sb-prof-warn span { display: block; margin-top: 3px; color: #8b7355; }

.sb-prof-log { margin: 16px 18px 0; }

.sb-prof-post {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f7ece0;
    border: 1px solid #d8c7a8;
    font-size: 12px;
    color: #2a2025;
    line-height: 1.5;
}

.sb-prof-odd { border-left: 3px solid #8b1538; }

.sb-prof-date {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8b7355;
    margin-bottom: 4px;
}

.sb-prof-gap {
    padding: 12px 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 2px;
    color: #8b7355;
}


/* ── Kim writes on the desktop ───────────────────────────────
   Not her full-screen takeover and not a system toast — a slab
   of her CRT dropped onto his wallpaper, in her own colour. */
.kim-desk-note {
    position: absolute;
    left: 50%; top: 44%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 620;
    width: min(540px, 76%);
    padding: 20px 22px 16px;
    background: #050505;
    border: 1px solid #8b1538;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
    font-family: 'Courier New', monospace;
    color: #e8e8e8;
    opacity: 0;
    transition: opacity 320ms ease, transform 320ms ease;
}

.kim-desk-note.kdn-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.kim-desk-note.kdn-off { opacity: 0; transform: translate(-50%, -50%) scale(1.03); }

.kdn-slit {
    height: 2px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, transparent, #8b1538 22%, #c4a87a 50%, #8b1538 78%, transparent);
}

.kdn-line {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.6;
    min-height: 1.6em;
}

.kdn-line + .kdn-line { margin-top: 8px; opacity: 0.88; }

.kdn-go {
    margin-top: 14px;
    text-align: right;
    font-size: 15px;
    color: #c4a87a;
    opacity: 0;
    transition: opacity 200ms ease;
}

.kdn-go.kdn-go-on { opacity: 1; animation: kdnPulse 1.1s ease-in-out infinite; }

@keyframes kdnPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* her stage, standing in ShadowChat's dark room instead of
   SlutBook's cream one */
.shadowchat-app .sb-stage-body {
    background: #14101a;
    border-color: #3a2a3a;
    color: #e2d4b8;
}

.shadowchat-app .sb-mascot-who { color: #f0c7d2; }


/* ── Kim standing as herself ─────────────────────────────────
   She is drawn in signal, not paint: a hooded silhouette with no
   face in it. Two things follow. She casts no drop-shadow, because
   nothing is there to block a light; and the hijack dim must not
   touch her — that greyscale exists to show she has taken somebody
   ELSE's body, and when the body is her own there is nothing to
   take. */
.sb-stage-art.sb-stage-ghost {
    filter: drop-shadow(0 0 18px rgba(196, 168, 122, 0.5));
    animation: sbStageRise 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both,
               sbGhostBreathe 4.5s ease-in-out infinite;
}

.sb-stage.sb-hijacked .sb-stage-art.sb-stage-ghost {
    filter: drop-shadow(0 0 24px rgba(196, 168, 122, 0.65));
}

@keyframes sbGhostBreathe {
    0%, 100% { opacity: 0.9; }
    50%      { opacity: 1; }
}


/* ── ShadowChat: a picture, sent ─────────────────────────────
   ASCII for now, standing in for the real thing. It has to be
   tiny to read as an image rather than as text, and it must never
   wrap — a wrapped line turns the picture into noise. */
.sc-ascii {
    /* 4px read as a smear rather than a picture. Braille art needs
       enough cell height to resolve, and the glyphs are wide, so the
       bubble is allowed to run wide and scroll instead of shrinking
       the art until it is noise. */
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 7px;
    line-height: 6.4px;
    letter-spacing: -0.5px;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
    color: #f3ead7;
    opacity: 1;
    text-shadow: 0 0 4px rgba(200, 170, 120, 0.35);
}

/* the picture gets the width it needs; text bubbles stay narrow */
.shadowchat-message.stranger:has(.sc-ascii) { max-width: 96%; }

/* his own turn in the room: the buttons sit where the stranger
   can see him hesitating */
.shadowchat-responses:empty { padding: 0; }
