.swe-invitation-app {
    --swe-pink: #d6057a;
    --swe-blue: #73cbf1;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(300px, 620px);
    gap: 32px;
    align-items: start;
    max-width: 1120px;
    margin: 32px auto;
    padding: 24px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.swe-invitation-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .10);
}

.swe-invitation-form-wrap h2 {
    margin: 0 0 10px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.1;
}

.swe-intro,
.swe-note,
.swe-status {
    line-height: 1.5;
}

.swe-fields {
    display: grid;
    gap: 15px;
    margin-top: 22px;
}

.swe-fields label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.swe-fields input {
    width: 100%;
    min-height: 48px;
    border: 2px solid #e4e4e4;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.swe-fields input:focus {
    outline: none;
    border-color: var(--swe-blue);
    box-shadow: 0 0 0 3px rgba(115, 203, 241, .25);
}

.swe-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.swe-actions button {
    min-height: 50px;
    border-radius: 11px;
    border: 0;
    padding: 12px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.swe-download {
    background: var(--swe-pink);
    color: #fff;
}

.swe-download:hover {
    filter: brightness(.92);
}

.swe-reset {
    background: #efefef;
    color: #222;
}

.swe-note {
    margin-bottom: 0;
    font-size: 13px;
    color: #666;
}

.swe-preview-wrap {
    text-align: center;
}

#swe-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #f5f5f5;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .13);
}

.swe-status {
    min-height: 24px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .swe-invitation-app {
        grid-template-columns: 1fr;
        padding: 12px;
        margin: 12px auto;
    }

    .swe-preview-wrap {
        order: -1;
    }

    .swe-invitation-form-wrap {
        padding: 20px;
    }
}
