.qr-hero{
    margin:14px 0 20px;
    padding:25px 18px;
    text-align:center;
    background:linear-gradient(
        120deg,#eff6ff,#fff,#f3e8ff
    );
    border:1px solid #e4e8f3;
    border-radius:13px;
    box-shadow:var(--shadow);
}

.qr-hero h1{
    margin:0 0 8px;
    font-size:clamp(27px,4vw,39px);
    letter-spacing:-1px;
}

.qr-hero p{
    margin:0;
    font-size:13px;
    color:#64748b;
}

.qr-workspace{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
    gap:16px;
    align-items:start;
    max-width:1050px;
    margin:auto;
}

.qr-panel{
    min-width:0;
    padding:20px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:12px;
    box-shadow:var(--shadow);
}

.qr-panel h2{
    margin:0 0 15px;
    font-size:17px;
}

.qr-types{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:20px;
}

.qr-type{
    padding:7px 13px;
    min-height:34px;
    border:1px solid #ddd6fe;
    border-radius:7px;
    background:#f5f3ff;
    color:#6d28d9;
    font-size:12px;
    font-weight:650;
    transition:transform .2s,box-shadow .2s;
}

.qr-type:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 10px #7c3aed20;
}

.qr-type[aria-pressed="true"]{
    background:var(--gradient);
    color:#fff;
    border-color:transparent;
}

.qr-field{
    display:block;
    min-width:0;
    margin-bottom:13px;
    color:#475569;
    font-size:12px;
    font-weight:600;
}

.qr-field input:not([type="color"]),
.qr-field textarea,
.qr-field select{
    display:block;
    width:100%;
    min-height:40px;
    padding:9px 11px;
    margin-top:6px;
    color:#17203a;
    background:#fff;
    border:1px solid #dce2ec;
    border-radius:7px;
}

.qr-field textarea{
    min-height:105px;
    resize:vertical;
    line-height:1.65;
}

.qr-field input:focus,
.qr-field textarea:focus,
.qr-field select:focus{
    outline:none;
    border-color:#a78bfa;
    box-shadow:0 0 0 3px #7c3aed12;
}

.qr-customize{
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid #e2e8f0;
}

.qr-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.qr-color{
    display:flex;
    align-items:center;
    gap:9px;
    margin-top:7px;
    padding:7px;
    border:1px solid #e2e8f0;
    border-radius:7px;
    font-size:11px;
    font-weight:500;
}

.qr-color input{
    width:33px;
    height:30px;
    border:0;
    padding:0;
    background:transparent;
    cursor:pointer;
}

.qr-check{
    display:flex;
    align-items:center;
    gap:8px;
    margin:12px 0;
    font-size:12px;
    color:#475569;
}

.qr-check input{
    accent-color:#7c3aed;
}

.qr-preview-panel{
    text-align:center;
}

.qr-preview-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}

.qr-preview-heading h2{
    margin:0;
}

.qr-live{
    color:#047857;
    font-size:11px;
    font-weight:650;
}

.qr-preview-frame{
    width:min(100%,340px);
    aspect-ratio:1;
    display:grid;
    place-items:center;
    padding:14px;
    margin:auto;
    background:#f8fafc;
    border:1px dashed #c4b5fd;
    border-radius:12px;
}

#qr-canvas{
    display:block;
    width:100%;
    height:auto;
    image-rendering:pixelated;
}

#qr-placeholder{
    color:#64748b;
    font-size:13px;
    padding:14px;
}

.qr-details{
    margin:12px 0;
    color:#64748b;
    font-size:12px;
    overflow-wrap:anywhere;
}

.qr-downloads{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:16px;
}

.qr-downloads .btn{
    min-height:40px;
}

.qr-reset{
    margin-top:10px;
}

#qr-status{
    color:#475569;
    font-size:12px;
    min-height:20px;
    overflow-wrap:anywhere;
}

#qr-status[data-error="true"]{
    color:#b91c1c;
}

.qr-privacy{
    color:#047857!important;
    font-size:12px;
}

.qr-content{
    max-width:1050px;
    margin:25px auto;
}

@media(max-width:850px){

    .qr-workspace{
        grid-template-columns:minmax(0,1fr);
    }
}

@media(max-width:620px){

    .qr-panel{
        padding:15px;
    }

    .qr-type,
    .qr-downloads .btn,
    .qr-reset{
        min-height:44px;
    }

    .qr-field input:not([type="color"]),
    .qr-field textarea,
    .qr-field select{
        font-size:16px;
    }
}

@media(prefers-reduced-motion:reduce){

    .qr-type{
        transition:none;
    }

    .qr-type:hover{
        transform:none;
    }
}
