.uep-wrap {
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0 0 2rem;
}

.uep-intro {
    font-size: 15px;
    margin-bottom: 14px;
}

.uep-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.uep-btn {
    width: 46px;
    height: 46px;
    font-size: 24px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, transform 0.1s;
    padding: 0;
}

.uep-btn:hover {
    border-color: #888;
    transform: scale(1.12);
}

.uep-btn.uep-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
    background: #f0f6fc;
}

.uep-clear {
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #555;
    width: auto;
    padding: 0 12px;
    height: 46px;
}

.uep-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.uep-save-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.uep-save-btn:hover {
    background: #135e96;
}

.uep-saved-msg {
    font-size: 16px;
    color: #1a7f37;
    font-weight: 500;
}

.uep-preview {
    font-size: 14px;
    color: #555;
    background: #f6f7f7;
    border-left: 3px solid #2271b1;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 4px;
}