
.night .wm-local { background-color:#222630 !important; border-color:#3a3f48 !important; color:#e6e8eb !important; }
.night .wm-local-desc { color:#9aa2ad !important; }
.night .wm-local input[type=text], .night .wm-local input[type=number], .night .wm-local select, .night .wm-local textarea { background:#1a1d24 !important; color:#e6e8eb !important; border-color:#3a3f48 !important; }
.night .wm-local-preview-title { background:#1a1d24 !important; color:#e6e8eb !important; }


.wm-local * {
    box-sizing: border-box;
}
.wm-local {
    width: 100%;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 10px 0;
}
.wm-local-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom:14px;
    color:#1f2937;
}
.wm-local-desc {
    font-size:13px;
    color:#6b7280;
    margin-bottom:16px;
}

.wm-local-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.wm-local-editor {
    flex: 0 0 420px;
    width: 420px;
}
.wm-local-preview-box {
    flex: 1;
    width: 100%;
    text-align: center;
}
.wm-local-row {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:12px;
    align-items:center;
}
.wm-local-group {
    flex: 1 1 100%;
}
.wm-local-group label {
    display:block;
    font-size:14px;
    color:#374151;
    margin-bottom:4px;
}
.wm-local-group input[type="text"],
.wm-local-group input[type="number"],
.wm-local-group input[type="color"] {
    width:100%;
    height:36px;
    padding:0 8px;
    border:1px solid #d1d5db;
    border-radius:6px;
    font-size:14px;
}

.wm-local-group input[type="range"] {
    width:100%;
    height:12px;
    border-radius:6px;
    background:linear-gradient(to right,#eeeeee,#000000);
    outline:none;
    -webkit-appearance:none;
}
.wm-local-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance:none;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#ffffff;
    border:1px solid #ccc;
    cursor:pointer;
}
.wm-local-group input[type="range"]::-moz-range-thumb {
    width:24px;
    height:24px;
    border-radius:50%;
    background:#ffffff;
    border:1px solid #ccc;
    cursor:pointer;
}
.wm-local-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:14px 0;
}
.wm-local-btn {
    padding:8px 16px;
    border:none;
    border-radius:6px;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
    font-size:14px;
}
.wm-local-btn:hover {
    background:#1d4ed8;
}
.wm-local-btn.secondary {
    background:#6b7280;
}
.wm-local-btn.secondary:hover {
    background:#4b5563;
}
.wm-local-preview-wrap {
    width:100%;
    overflow:auto;
    text-align:center;
}
#wm-local-canvas {
    max-width:100%;
    border:1px solid #ddd;
}

.wm-local-preview-title {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    padding:8px 14px;
    background:#f1f5f9;
    border:1px solid #e2e8f0;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    color:#475569;
    letter-spacing:0.5px;
}
.wm-local-preview-title::before {
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

@media(max-width:768px){
    .wm-local-container {
        flex-direction: column;
    }
    .wm-local-editor {
        flex: 0 0 auto;
        width: 100%;
    }
    .wm-local {
        padding:12px;
    }
}
