.cfg-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cfg-header {
    margin-bottom: 16px;
}

.cfg-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
}

.cfg-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cfg-input-box {
    margin-bottom: 16px;
}

.cfg-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.cfg-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    resize: vertical;
}

.cfg-input:focus {
    outline: none;
    border-color: #b832ff;
    box-shadow: 0 0 0 1px rgba(184,50,255,0.2);
}

.cfg-styles-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cfg-tab {
    border: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f3f3;
    font-size: 13px;
    cursor: pointer;
}

.cfg-tab-active {
    background: #b832ff;
    color: #fff;
}

.cfg-results {
    border-top: 1px solid #eee;
}

.cfg-style-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.cfg-style-preview {
    flex: 1;
}

.cfg-style-name {
    font-size: 13px;
    font-weight: 600;
    color: #777;
    margin-bottom: 4px;
}

.cfg-style-text {
    font-size: 20px;
    word-wrap: break-word;
    /* important: allow fonts that have these glyphs */
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI Symbol", "Segoe UI Emoji",
                 "Noto Sans Symbols", "Noto Sans Math",
                 sans-serif;
}

.cfg-copy-btn {
    min-width: 80px;
    border-radius: 999px;
    border: none;
    padding: 8px 14px;
    background: #ff4fd8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.cfg-copy-btn:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .cfg-style-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfg-copy-btn {
        align-self: flex-end;
    }
}
