@font-face {
    font-family: 'DINPro';
    src: url('/blueprint/fonts/dinpro.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'DINPro';
    src: url('/blueprint/fonts/dinpro_bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'DINPro';
    src: url('/blueprint/fonts/dinpro_black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'DINPro';
    src: url('/blueprint/fonts/dinpro_light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'DINPro';
    src: url('/blueprint/fonts/dinpro_medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'DINPro';
    src: url('/blueprint/fonts/dinpro_italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* Main CSS Reset & Structure */
/* Hide all scrollbars globally */
::-webkit-scrollbar {
    display: none;
}
* {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family, 'DINPro', sans-serif);
    background-color: var(--bg-primary, #ebebeb);
    color: var(--text-primary, #222222);
    transition: background-color 0.4s ease, color 0.4s ease, font-family 0.4s ease;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Layout */
.layout-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg, #1e1e1f);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-sizing: border-box;
    border-right: 3px solid var(--sidebar-border, #333333);
    z-index: 10;
    flex-shrink: 0;
    transition: background-color 0.4s, border-color 0.4s;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Logo & Headers */
.aperture-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.aperture-logo svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    animation: rotate-logo 20s linear infinite;
}

@keyframes rotate-logo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nav Menu */
.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin: 25px 0 10px 0;
    font-weight: 700;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item a, .nav-item button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.2s ease;
}

.nav-item a:hover, .nav-item button:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.nav-item.active a {
    color: #ffffff;
    background-color: var(--accent-color, #0078d4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-item a.locked { opacity: 0.42; cursor: not-allowed; }
.sidebar .nav-item a.locked:hover { transform: none; background: transparent; }

/* Design Selector specific styles removed */

/* Cover / Banner */
.task-cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: none;
}

.task-cover-spacer {
    width: 100%;
    height: 100vh;
    flex-shrink: 0;
}

.task-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 15px 30px;
    box-sizing: border-box;
    background-color: var(--sidebar-bg);
    border-bottom: 2px solid var(--border-color);
    will-change: height;
}

.task-cover__carrier {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.task-cover__filter {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 2;
    transition: opacity 0.4s ease;
}

/* Hover-zoom and lighter filter to easily read screenshot details */
.task-cover-wrapper.cover-hover .task-cover__carrier {
    transform: scale(1.15) !important;
}

/* Cover filter opacity remains constant on hover */

.task-cover__content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    width: calc(100% - 680px);
    min-width: 55%;
    padding: 0 40px;
    margin: 0;
    text-align: center;
    will-change: opacity, transform;
    box-sizing: border-box;
}

.task-title {
    font-size: 52px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    line-height: 1.2;
    text-transform: uppercase;
}

.task-subtitle {
    font-size: 22px;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content Containers */
.task-body {
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.variant-card {
    background-color: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.variant-card:last-child {
    margin-bottom: 0;
}

.variant-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color, #0078d4);
    padding-bottom: 10px;
    color: var(--text-title, #111111);
}

/* Code & Table Elements */
.code-block {
    background: #18181c;
    color: #e5c07b;
    padding: 20px;
    border-radius: 8px;
    font-family: 'DINPro', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.aperture-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.aperture-table th, .aperture-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.aperture-table th {
    background-color: rgba(0, 0, 0, 0.04);
    font-weight: 700;
}

/* Matrix Table Specific Styles */
.matrix-table {
    border: 1px solid var(--border-color, #e0e0e0);
}

.matrix-table th, .matrix-table td {
    border: 1px solid var(--border-color, #e0e0e0);
    text-align: center !important;
    padding: 8px 6px;
}

.matrix-table th {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.matrix-table td:first-child {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Forms & Inputs */
.input-area {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.input-area input {
    padding: 12px 18px;
    font-size: 16px;
    border: 2px solid var(--border-color, #cccccc);
    border-radius: 8px;
    background-color: var(--input-bg, #ffffff);
    color: var(--text-primary, #222222);
    width: 250px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.input-area input:focus {
    outline: none;
    border-color: var(--accent-color, #0078d4);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.input-area button {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--accent-color, #0078d4);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
    transition: all 0.2s ease;
}

.input-area button:hover {
    transform: translateY(-1px);
}

.result-msg {
    margin-top: 15px;
    font-weight: bold;
    font-size: 15px;
    min-height: 22px;
}

/* Animations */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-6px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.25s ease-in-out 0s 2;
}

/* Themes 1-4 removed */

/* ---------------------------------------------------- */
/* THEME 5: BLUEPRINT MODE (Aperture Hologram)          */
/* ---------------------------------------------------- */
.design-blueprint {
    --bg-primary: #05162a;
    --bg-secondary: #0a2444;
    --text-primary: #00e5ff;
    --text-secondary: #0087a3;
    --text-title: #00e5ff;
    --accent-color: #00e5ff;
    --border-color: #005a82;
    --sidebar-bg: #020d1a;
    --sidebar-border: #00e5ff;
    --input-bg: #041224;
    font-family: 'DINPro', sans-serif;
}
/* Blueprint Grid Background */
.design-blueprint {
    background-image: linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}
.design-blueprint .variant-card {
    border-radius: 0;
    border: 1px solid #00e5ff;
    position: relative;
}
.design-blueprint .variant-card::after {
    content: " ";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 4px solid rgba(0, 229, 255, 0.08);
    pointer-events: none;
}
.design-blueprint .code-block {
    background: #020d1a;
    color: #00e5ff;
    border: 1px dashed #00e5ff;
}
.design-blueprint input {
    border: 1px solid #00e5ff;
    border-radius: 0;
}
.design-blueprint button {
    background: transparent;
    border: 1px solid #00e5ff;
    color: #00e5ff;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
.design-blueprint button:hover {
    background: #00e5ff;
    color: #05162a;
}
.design-blueprint th {
    background-color: rgba(0, 229, 255, 0.08);
}

/* Portal 2 Flipping Squares Transition Canvas */
#portal-transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    pointer-events: none;
    display: none;
}

/* Gel Vials UI for Task 10 */
.gel-vials-container {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    justify-content: space-around;
    flex-wrap: wrap;
}

.gel-vial-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gel-vial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.gel-vial-tube {
    width: 180px;
    height: 110px;
    border: 4px solid #dddddd;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass shine effect */
.gel-vial-tube::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 5%;
    width: 90%;
    height: 15%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    z-index: 5;
    pointer-events: none;
}

.gel-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    z-index: 2;
    transition: height 0.5s ease;
}

/* Gel Colors */
.gel-repulsion .gel-liquid {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}
.gel-propulsion .gel-liquid {
    background: linear-gradient(180deg, #f97316, #c2410c);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}
.gel-conversion .gel-liquid {
    background: linear-gradient(180deg, #f8fafc, #cbd5e1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Glowing Viscosity Value */
.gel-vial-value {
    position: relative;
    z-index: 10;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    font-family: 'DINPro', sans-serif;
}

.gel-conversion .gel-vial-value {
    color: #0f172a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Paper Label on the Gel Vial */
.gel-vial-paper-label {
    position: absolute;
    z-index: 10;
    width: 120px;
    height: 72px;
    background: #fdfaf2;
    color: #2b2b2b;
    font-family: 'DINPro', sans-serif;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #c2bfa3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    line-height: 1.1;
    top: 19px;
    left: 30px;
}
.paper-gel-name { font-size: 8.5px; font-weight: bold; margin-bottom: 0px; text-align: center; }
.paper-gel-color { font-size: 7px; color: #666; text-transform: uppercase; }
.paper-divider { width: 90%; height: 1px; background: #c2bfa3; margin: 2px 0; }
.paper-density-label { font-size: 7px; color: #888; font-weight: bold; }
.paper-density-val { font-size: 13px; font-weight: bold; color: #111; margin-top: 0px; }
.paper-density-base { font-size: 8px; color: #666; }


/* Bubble Animations */
.gel-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 3;
    animation: floatUp 3s infinite linear;
}

.bubble-1 { width: 8px; height: 8px; left: 25%; bottom: 10%; animation-delay: 0s; }
.bubble-2 { width: 12px; height: 12px; left: 55%; bottom: 20%; animation-delay: 1s; animation-duration: 2.5s; }
.bubble-3 { width: 6px; height: 6px; left: 40%; bottom: 5%; animation-delay: 2s; animation-duration: 3.5s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

.gel-vial-info {
    margin-top: 10px;
    text-align: center;
}

.gel-vial-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.gel-vial-type {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gel-vial-base {
    font-size: 11px;
    color: var(--text-primary);
}

/* Two-column layout for task page */
.task-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 0;
    flex: 1;
    height: 100%;
    overflow: hidden;
    min-height: 0;
    position: relative;
    z-index: 2;
}

.task-left {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 0px;
}
.task-left::-webkit-scrollbar {
    display: none;
}

.task-variants {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.task-right {
    width: 680px;
    max-width: 45%;
    flex-shrink: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0px 30px 20px 0;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}
.task-right::-webkit-scrollbar {
    display: none;
}

.video-cards-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
    transition: none;
}


@media (max-width: 1200px) {
    .sidebar {
        width: 220px;
        padding: 20px 15px;
    }
    .matrix-table th, .matrix-table td {
        padding: 6px 3px;
        font-size: 13px;
    }
}

@media (max-width: 800px) {
    .sidebar {
        width: 180px;
        padding: 15px 10px;
    }
    .task-content-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }
    .task-left {
        height: auto;
        overflow-y: visible;
        padding-top: 0 !important;
    }
    .task-cover-wrapper {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        z-index: 5 !important;
    }
    .task-cover {
        position: relative !important;
        height: 200px !important;
        top: auto !important;
        left: auto !important;
        border-bottom: 2px solid var(--border-color) !important;
        align-items: center !important;
    }
    .task-cover__content {
        width: 100% !important;
        min-width: auto !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
    }
    .task-cover-spacer {
        display: none !important;
    }
    .task-right {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        position: static !important;
    }
    .video-cards-wrapper {
        position: static !important;
        transform: none !important;
    }
    .task-variants {
        padding: 20px !important;
    }
    .task-title {
        font-size: 28px !important;
    }
    .task-subtitle {
        font-size: 14px !important;
    }
}

.elevator-video-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.video-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'DINPro', sans-serif;
    flex-shrink: 0;
}

.elevator-video {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
    max-height: none;
    flex-grow: 1;
}

.video-footer {
    padding: 8px 12px;
    font-size: 11px;
    text-align: right;
    color: var(--accent-color);
    font-family: 'DINPro', sans-serif;
    background: rgba(0, 0, 0, 0.1);
}

/* Centered Continue Button & Mechanical Flip Reveal */
.continue-btn-wrapper {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.next-test-btn {
    display: inline-block;
    padding: 15px 45px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Theme sensitive stylings for next test button */
.next-test-btn {
    display: inline-block;
    padding: 15px 45px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(10, 36, 68, 0.95);
    border: 2px solid #00e5ff;
    color: #00e5ff;
    font-family: 'DINPro', sans-serif;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
    border-radius: 0;
}
.next-test-btn:hover {
    background: #00e5ff;
    color: #05162a;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.7);
    transform: scale(1.05);
}

/* Mechanical reveal panels */
.pixel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    pointer-events: none;
}

.pixel-tile {
    background: #151515;
    border: 1px solid #0c0c0c;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.pixel-tile.flipped {
    transform: rotateY(90deg);
    opacity: 0;
}

@media (min-width: 801px) {
    body.task-7-page .task-cover {
        align-items: flex-end !important;
        padding-right: 80px !important;
    }
    body.task-7-page .task-cover__content {
        width: 50% !important;
        max-width: 700px !important;
        min-width: 400px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        text-align: right !important;
    }
    body.task-7-page .task-title {
        text-align: right !important;
    }
    body.task-7-page .task-subtitle {
        text-align: right !important;
        margin-right: 0 !important;
        margin-left: auto !important;
    }
}

@media (min-width: 801px) {
    body.task-8-page .task-cover {
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 80px !important;
    }
    body.task-8-page .task-cover__content {
        width: 100% !important;
        max-width: 800px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    body.task-8-page .task-title {
        text-align: center !important;
    }
    body.task-8-page .task-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Immersive Aperture Activation Console Autoplay Fallback Overlay */
#portal-autoplay-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #020d1a;
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.autoplay-content {
    text-align: center;
    color: #00e5ff;
    font-family: 'DINPro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.autoplay-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: rotate-logo 15s linear infinite;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6));
}

.autoplay-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    animation: blink 1.5s infinite;
}

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

/* Keep the recovered task sidebar navigable without squeezing the protocol on phones. */
@media (max-width: 600px) {
    .layout-container {
        flex-direction: column;
        height: 100dvh;
    }
    .sidebar {
        width: 100%;
        height: 64px;
        flex: 0 0 64px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-right: 0;
        border-bottom: 2px solid var(--sidebar-border, #333333);
        overflow: hidden;
    }
    .sidebar-logo-container { margin-bottom: 0 !important; }
    .aperture-logo-sidebar { width: 32px !important; height: 32px !important; }
    .sidebar-logo-container > div { display: none; }
    .sidebar .nav-section-title { display: none; }
    .sidebar .nav-list {
        flex: 1;
        min-width: 0;
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        scrollbar-width: thin;
    }
    .sidebar .nav-item { flex-shrink: 0; }
    .sidebar .nav-item a { width: auto; white-space: nowrap; padding: 9px; }
    .main-content { width: 100%; height: auto; min-height: 0; }
    .task-cover { height: auto !important; min-height: 250px; padding: 20px 12px !important; }
    .task-variants { padding: 12px !important; }
    .input-area input { box-sizing: border-box; max-width: 100%; }
}




