.gcardpro-editor {
    max-width: 720px;
    margin: auto;
    padding: 10px;
    display: grid;
    gap: 12px;
    font-family: system-ui
}

.ratio-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 100vw;
    overflow: hidden
}

#gcard-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: pan-y
}

canvas.upper-canvas {
    touch-action: pan-y!important
}

.editor-controls {
    display: grid;
    gap: 10px
}

.ctrl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px
}

.ctrl input,
.ctrl select {
    flex: 1;
    margin-right: 6px;
    padding: 6px
}

.ctrl input[type="range"] {
    width: 60%
}

.ctrl input[type="checkbox"] {
    transform: scale(1.2)
}

.btn {
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer
}

.btn.primary {
    background: #0a5c2e;
    color: #fff;
    font-weight: bold
}