.itp-profile-tool {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 18px;
    background: #f8f4ff;
    box-sizing: border-box;
    font-family: inherit;
    color: #35105f;
    box-shadow: 0 8px 30px rgba(53, 16, 95, 0.10);
}

.itp-profile-tool * {
    box-sizing: border-box;
}

.itp-profile-tool__intro h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 32px);
}

.itp-profile-tool__intro p,
.itp-profile-tool__fr p {
    margin: 0 0 20px;
    line-height: 1.55;
}

.itp-profile-tool__controls {
    display: grid;
    gap: 16px;
}

.itp-profile-tool__upload,
.itp-profile-tool__adjust {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.itp-profile-tool__upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #8d4dcc;
    border-radius: 10px;
    background: #fff;
    font-weight: 400;
}

.itp-profile-tool__adjust small {
    font-weight: 400;
    opacity: 0.85;
}

.itp-profile-tool__adjust input[type="range"] {
    width: 100%;
    accent-color: #6c2bb7;
}

.itp-profile-tool__preview-wrap {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin: 24px auto;
    background: #eee;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.itp-profile-tool__canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

.itp-profile-tool__canvas.is-dragging {
    cursor: grabbing;
}

.itp-profile-tool__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    text-align: center;
    color: #6c2bb7;
    font-weight: 700;
    pointer-events: none;
}

.itp-profile-tool__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.itp-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.itp-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.itp-btn--primary {
    background: #6c2bb7;
    color: #fff;
}

.itp-btn--secondary {
    background: #fff;
    color: #6c2bb7;
    border: 2px solid #6c2bb7;
}

.itp-profile-tool__note {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.itp-profile-tool__fr {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(53,16,95,.15);
}

.itp-profile-tool__fr h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

@media (max-width: 600px) {
    .itp-profile-tool {
        padding: 18px;
    }
    .itp-btn {
        width: 100%;
    }
}
