* {
            box-sizing: border-box;
        }
        body {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: #f0f2f5;
            margin: 0;
            padding: 20px;
        }
        .container {
            max-width: 900px;
            margin: 0 auto;
        }
        .card {
            background: white;
            border-radius: 24px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-left: 6px solid #3b82f6;
        }
        .card h2 {
            margin: 0 0 12px 0;
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .badge {
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 30px;
            background: #eef2ff;
            color: #1e40af;
        }
        .test-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #eef2f6;
        }
        .test-name {
            font-weight: 500;
        }
        .status {
            font-weight: bold;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
        }
        .pass { background: #d1fae5; color: #065f46; }
        .fail { background: #fee2e2; color: #991b1b; }
        .warn { background: #fed7aa; color: #9b4a0b; }
        .info-text {
            background: #f8fafc;
            padding: 12px;
            border-radius: 16px;
            font-family: monospace;
            font-size: 0.85rem;
            word-break: break-all;
            margin-top: 8px;
        }
        .grid-demo {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 12px;
        }
        .grid-demo div {
            background: #3b82f6;
            color: white;
            text-align: center;
            padding: 8px;
            border-radius: 12px;
            font-size: 0.8rem;
        }
        .flex-demo {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        .flex-demo div {
            background: #10b981;
            color: white;
            padding: 8px;
            border-radius: 12px;
            flex: 1;
            text-align: center;
        }
        button {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        button:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
        button:active {
            transform: translateY(0);
        }
        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .video-container {
            margin-top: 16px;
            position: relative;
            background: #1e293b;
            border-radius: 16px;
            overflow: hidden;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        video {
            width: 100%;
            max-height: 400px;
            background: #000;
            display: block;
        }
        .camera-status {
            padding: 12px;
            border-radius: 12px;
            margin-top: 12px;
            font-size: 14px;
        }
        .camera-success {
            background: #d1fae5;
            color: #065f46;
            border-left: 4px solid #10b981;
        }
        .camera-error {
            background: #fee2e2;
            color: #991b1b;
            border-left: 4px solid #ef4444;
        }
        .camera-info {
            background: #eef2ff;
            color: #1e40af;
            border-left: 4px solid #3b82f6;
        }
        .device-list {
            margin-top: 12px;
            font-size: 13px;
        }
        .device-item {
            padding: 6px 8px;
            background: #f8fafc;
            margin: 4px 0;
            border-radius: 8px;
            font-family: monospace;
        }
        .button-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }