.math-result, .result-value, .preview-container {
            background: #f0f2f5;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid #dee2e6;
        }
        #thumbnailCanvas {
            background: #e9ecef;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            max-width: 100%;
            height: auto;
            border: 1px solid #ced4da;
        }
        .control-group {
            background: white;
            border-radius: 12px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(70,130,180,0.15);
            box-shadow: 0 2px 6px rgba(0,0,0,0.02);
        }
        .control-group h5 {
            font-weight: 600;
            color: #2c3e66;
            margin-bottom: 1rem;
            border-left: 4px solid var(--primary-color);
            padding-left: 0.75rem;
        }
        .preset-badge {
            background: #e9ecef;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-block;
            margin-right: 8px;
            margin-bottom: 8px;
        }
        .preset-badge:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }
        .upload-area {
            border: 2px dashed #bdc3c7;
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: #fcfcfc;
        }
        .upload-area:hover {
            border-color: var(--primary-color);
            background: #f1f9ff;
        }
        .position-badge {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            padding: 0.3rem 0.6rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            display: inline-block;
            margin: 0 4px 4px 0;
            transition: 0.1s;
        }
        .position-badge.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        .position-badge:hover:not(.active) {
            background: #e2e6ea;
        }
        .tool-footer-note {
            font-size: 0.85rem;
            margin-top: 1rem;
            background: #fef9e6;
            padding: 0.6rem;
            border-radius: 8px;
        }