.gtd-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

.gtd-toolbar,
.gtd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.gtd-btn {
    appearance: none;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #111;
    padding: 10px 16px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    line-height: 1.2;
}

.gtd-btn:hover {
    background: #f5f5f5;
}

.gtd-btn-primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.gtd-btn-primary:hover {
    background: #2b2b2b;
}

.gtd-options {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) 120px;
    gap: 14px;
    margin-bottom: 18px;
}

.gtd-options label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.gtd-options input[type="text"] {
    width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.gtd-options input[type="range"] {
    width: 100%;
}

.gtd-options input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 2px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
}

.gtd-stage {
    margin-bottom: 18px;
}

.gtd-canvas-box {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    line-height: 0;
}

.gtd-canvas-box .canvas-container {
    max-width: 100%;
    margin: 0 auto;
}

.gtd-canvas-box canvas {
    max-width: 100%;
    height: auto !important;
}

.gtd-help {
    margin: 10px 0 0;
    font-size: 14px;
    color: #666;
}

.gtd-preview {
    margin-top: 22px;
}

.gtd-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

@media (max-width: 700px) {
    .gtd-wrap {
        padding: 16px;
    }

    .gtd-options {
        grid-template-columns: 1fr;
    }

    .gtd-toolbar .gtd-btn,
    .gtd-toolbar label.gtd-btn,
    .gtd-actions .gtd-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
