        :root {
            --bg: #0f1724;
            --card: #0b1220;
            --glass: rgba(255, 255, 255, 0.03);
            --accent: #7c3aed;
            --muted: #94a3b8;
        }

        * {
            box-sizing: border-box;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
        }

        body {
            margin: 0;
            min-height: 100vh;
            background: linear-gradient(180deg, #071025 0%, #071a2b 100%);
            color: #e6eef8;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 28px;
        }

        .wrap {
            width: 100%;
            max-width: 980px;
        }

        header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 18px;
        }

        .logo {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--accent), #06b6d4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: white;
            font-size: 20px;
            box-shadow: 0 6px 20px rgba(12, 15, 30, 0.6);
        }

        h1 {
            font-size: 20px;
            margin: 0;
        }

        p.lead {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
        }

        .card {
            background: var(--card);
            padding: 18px;
            border-radius: 14px;
            box-shadow: 0 8px 30px rgba(2, 6, 23, 0.7);
        }

        .input-section {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        textarea {
            width: 100%;
            min-height: 220px;
            padding: 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.03);
            background: var(--glass);
            color: inherit;
            resize: vertical;
            font-size: 15px;
        }

        .controls {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        button {
            background: linear-gradient(180deg, var(--accent), #5b21b6);
            border: 0;
            padding: 10px 12px;
            border-radius: 10px;
            color: white;
            cursor: pointer;
            font-weight: 600;
        }

        button.ghost {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: var(--muted);
            font-weight: 600;
        }

        .panel {
            padding: 14px;
            border-radius: 10px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
            border: 1px solid rgba(255, 255, 255, 0.03);
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 12px;
        }

        label {
            display: block;
            font-size: 13px;
            color: var(--muted);
            margin-bottom: 8px;
        }

        .preview {
            min-height: 120px;
            padding: 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.02);
            overflow: auto;
        }

        .small {
            font-size: 13px;
            color: var(--muted);
        }

        footer {
            margin-top: 12px;
            color: var(--muted);
            font-size: 13px;
        }

        .styles-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 10px;
        }

        .style-box {
            flex: 0 1 32%;
            min-width: 200px;
            padding: 12px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 14px;
            color: #cbd5e1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .style-title {
            font-size: 12px;
            color: var(--muted);
        }

        @media (max-width: 880px) {
            .controls {
                flex-direction: column;
            }
        }

        .copy-style,
        .download-style {
            background: transparent;
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 14px;
        }

        .copy-style:hover,
        .download-style:hover {
            color: var(--accent);
        }

        .icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--muted);
            padding: 4px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon-btn:hover {
            color: var(--accent);
            background: rgba(255, 255, 255, 0.05);
        }

        .icon-btn svg {
            vertical-align: middle;
        }

        /* Tooltip base */
        .tooltip {
            position: absolute;
            background: #333;
            color: #fff;
            padding: 3px 6px;
            font-size: 11px;
            border-radius: 4px;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -6px);
            left: 50%;
            top: -6px;
            transition: opacity 0.2s ease;
        }

        /* Visible tooltip */
        .tooltip.show {
            opacity: 1;
        }