.legend {color:#fff}
.test-canvas-container {
            background: #1a1a2e;
            border-radius: 12px;
            padding: 10px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            margin: 1rem 0;
            text-align: center;
            position: relative;
        }
        #deadPixelCanvas {
            background-color: black;
            display: block;
            margin: 0 auto;
            border-radius: 8px;
            cursor: crosshair;
            box-shadow: 0 0 0 2px #eee, 0 0 0 4px #ccc;
            width: 100%;
            height: auto;
            max-width: 800px;
            aspect-ratio: 16 / 10;
        }
        .color-palette {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            margin: 20px 0;
        }
        .color-btn {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            transition: transform 0.1s ease, box-shadow 0.2s;
            cursor: pointer;
        }
        .color-btn:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
        .color-btn.active { border: 4px solid gold; transform: scale(1.05); }
        .marker-badge {
            background: #dc3545;
            color: white;
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 0.9rem;
            font-weight: bold;
        }
        .defect-list {
            max-height: 180px;
            overflow-y: auto;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 8px;
            font-family: monospace;
            font-size: 0.85rem;
        }
        .defect-item {
            border-bottom: 1px solid #ddd;
            padding: 6px 4px;
            display: flex;
            justify-content: space-between;
        }
        .instruction-icon {
            background: #e9ecef;
            border-radius: 40px;
            padding: 8px 15px;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin: 5px;
        }
        .expert-tip {
            background: #eef2ff;
            border-left: 5px solid #0d6efd;
        }
        .spec-badge {
            font-family: monospace;
            background: #212529;
            color: #f8f9fa;
            padding: 2px 8px;
            border-radius: 20px;
        }
        .action-buttons {
            gap: 12px;
            margin-bottom: 15px;
        }
        .fullscreen-color-panel {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            border-radius: 60px;
            padding: 10px 20px;
            display: flex;
            gap: 12px;
            z-index: 9999;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.2);
            transition: opacity 0.2s;
        }
        .fullscreen-color-panel .fs-color-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid white;
            cursor: pointer;
            transition: transform 0.1s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .fullscreen-color-panel .fs-color-btn:hover {
            transform: scale(1.1);
            border-color: gold;
        }
        .fullscreen-color-panel .fs-color-btn.active {
            border: 3px solid gold;
            transform: scale(1.05);
        }
        .fullscreen-color-panel .close-fs-panel {
            background: rgba(255,255,255,0.2);
            border-radius: 40px;
            padding: 0 12px;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            margin-left: 8px;
        }
        .fullscreen-color-panel .close-fs-panel:hover {
            background: rgba(255,255,255,0.4);
        }
        @media (max-width: 700px) {
            .fullscreen-color-panel { padding: 6px 12px; gap: 6px; }
            .fullscreen-color-panel .fs-color-btn { width: 36px; height: 36px; }
        }
        .key-hint {
            font-size: 12px;
            background: rgba(0,0,0,0.6);
            color: #ccc;
            border-radius: 20px;
            padding: 2px 8px;
        }
        .limitation-note {
            background-color: #f8d7da;
            border-left: 5px solid #dc3545;
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 4px;
        }
        .panel-comparison {
            background: #f0f2f5;
            border-radius: 12px;
            padding: 1rem;
        }