        .tool-panel {
            background: linear-gradient(180deg, rgba(10, 30, 32, 0.85), rgba(6, 20, 22, 0.9));
            border: 1px solid rgba(255, 255, 255, 0.04);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
            border-radius: 8px;
            padding: 1rem;
        }

        .tool-ui h1 {
            margin-top: 0;
            color: #e6f7f6;
        }

        textarea,
        input[type="text"],
        input[type="number"],
        input[type="search"],
        select,
        input[type="url"] {
            background: rgba(255, 255, 255, 0.03);
            color: #e7f6f5;
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: .6rem .75rem;
            border-radius: 6px;
            outline: none;
            width: 100%;
            box-sizing: border-box;
        }

        textarea {
            min-height: 140px;
            resize: vertical;
            font-family: inherit;
            line-height: 1.4;
        }

        textarea::placeholder,
        input::placeholder {
            color: rgba(255, 255, 255, 0.38);
        }

        textarea:focus,
        input:focus,
        select:focus {
            box-shadow: 0 0 0 3px rgba(29, 203, 190, 0.08);
            border-color: rgba(29, 203, 190, 0.6);
        }

        #fontSearch {
            width: 100%;
            padding: .6rem;
            margin: .25rem 0 .6rem 0;
            box-sizing: border-box;
            background: rgba(0, 0, 0, 0.15);
        }

        .controls {
            display: flex;
            gap: .6rem;
            align-items: center;
            flex-wrap: wrap;
            margin-top: .6rem;
        }

        .controls label {
            margin: 0;
            color: rgba(230, 247, 246, 0.9);
        }

        .tool-btn {
            background: transparent;
            color: #cfeef0;
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: .45rem .7rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all .12s ease;
        }

        .tool-btn.primary {
            background: linear-gradient(180deg, #19d2c5, #07b2a6);
            color: #003;
            font-weight: 600;
            border: none;
            box-shadow: 0 6px 12px rgba(3, 50, 48, 0.45);
        }

        .tool-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
        }

        .tool-btn.primary:hover {
            filter: brightness(.98);
        }

        .preview {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            padding: 1rem;
            min-height: 80px;
            border-radius: 6px;
            color: #f2fbfa;
            font-size: 18px;
            line-height: 1.5;
        }

        .font-status {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            vertical-align: middle;
            margin-left: .5rem;
            color: rgba(230, 247, 246, 0.9);
        }

        .spinner {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.06);
            border-top-color: #14d7c8;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @media (max-width:800px) {
            .controls {
                flex-direction: column;
                align-items: stretch;
            }

            .tool-btn {
                width: 100%;
            }
        }

        .custom-dropdown {
            position: relative;
        }

        .custom-toggle {
            background: rgba(0, 0, 0, 0.12);
            color: #e7f6f5;
            padding: .6rem .75rem;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.04);
            cursor: pointer;
        }

        .custom-list {
            position: absolute;
            left: 0;
            right: 0;
            background: linear-gradient(180deg, #042226, #062a2c);
            border: 1px solid rgba(255, 255, 255, 0.06);
            max-height: 280px;
            overflow: auto;
            margin-top: .35rem;
            z-index: 9999;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
            border-radius: 6px;
        }

        .custom-item {
            padding: .5rem .75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.02);
            color: #dff;
            cursor: pointer;
        }

        .custom-item:hover,
        .custom-item.active {
            background: rgba(255, 255, 255, 0.03);
        }

        .custom-group {
            padding: .35rem .75rem;
            font-size: 0.85rem;
            color: rgba(200, 240, 238, 0.8);
            border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
        }