.dzw-tafel-editor{font:14px Arial,sans-serif;color:#183247}
.dzw-tafel-editor .card{background:#fff;border:1px solid #dce4e9;border-radius:12px;padding:18px;min-width:0;max-width:none;width:100%;margin:0}
.dzw-tafel-editor h2{font-size:21px!important;margin:0 0 12px!important;line-height:1.25}
.dzw-tafel-editor label{display:block;font-weight:600;font-size:14px;margin:12px 0 5px}
.dzw-tafel-editor input,.dzw-tafel-editor select,.dzw-tafel-editor button{font:inherit;max-width:100%;min-width:0}
.dzw-tafel-editor input:not([type=file]),.dzw-tafel-editor select{width:100%;padding:8px;border:1px solid #b9c5cc;border-radius:5px;background:#fff;color:#183247}
.dzw-tafel-editor input[type=range]{padding:0;accent-color:#126a89}
.dzw-tafel-editor input[type=color]{height:36px}
.dzw-tafel-editor button{padding:8px;border:1px solid #b9c5cc;border-radius:6px;background:#f0f5f8;color:#183247;cursor:pointer}
.dzw-tafel-editor .grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.dzw-tafel-editor .grid>*{min-width:0}
.dzw-tafel-editor .toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.dzw-tafel-editor .muted{font-size:12px;color:#526774;margin:8px 0}
.dzw-tafel-editor .tip{padding:10px;background:#fff3d6;border:1px solid #e6a938;border-radius:7px;margin:8px 0}
.dzw-tafel-editor .stage{background:#e2e8ed;min-height:250px;display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden}
.dzw-tafel-editor .coaster{position:relative;overflow:hidden;box-shadow:0 5px 14px #0003;flex:none}
.dzw-tafel-editor .obj{position:absolute;cursor:grab;touch-action:none;text-align:center;line-height:1.1;overflow:visible;overflow-wrap:anywhere}
.dzw-tafel-editor .obj img{width:100%;display:block;pointer-events:none}
.dzw-tafel-editor .obj.active{outline:1px dashed #176c99}
.dzw-tafel-editor [hidden]{display:none!important}
.dzw-tafel-editor .dzw-tafel-palette{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:2px;margin:6px 0 10px;max-width:100%;min-width:0}
.dzw-tafel-editor .dzw-tafel-palette button{background:var(--swatch)!important;border:1px solid #87939b!important;min-height:0!important;min-width:0!important;width:100%!important;height:auto!important;aspect-ratio:1;padding:0!important;border-radius:2px;box-shadow:none;margin:0!important;box-sizing:border-box}
.dzw-tafel-editor .dzw-tafel-palette button[aria-pressed=true]{outline:2px solid #176c89;outline-offset:0;position:relative;z-index:1}
.dzw-tafel-editor .dzw-tafel-palette button:focus-visible{outline:3px solid #176c89;outline-offset:0}
@media(max-width:480px){.dzw-tafel-editor .grid{grid-template-columns:minmax(0,1fr)}.dzw-tafel-editor .card{padding:12px}}

.dzw-tafel-layout.dzw-tafel-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start;gap:16px}.dzw-tafel-left{min-width:0;display:grid;gap:16px}.dzw-tafel-left .dzw-tafel-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.dzw-tafel-left .dzw-tafel-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}.dzw-tafel-left .dzw-tafel-corner-buttons{display:flex;flex-direction:column;align-items:stretch}.dzw-tafel-left .dzw-tafel-corner-buttons button{justify-content:flex-start;text-align:left}.dzw-tafel-layout>.preview{position:sticky;top:16px;align-self:start;min-width:0}.admin-bar .dzw-tafel-layout>.preview{top:48px}.dzw-tafel-layout>.preview .stage{min-height:0;padding:12px}.dzw-tafel-layout>.preview .tip{margin:4px 0;padding:6px}.dzw-tafel-layout>.preview p{margin:6px 0}.dzw-tafel-left .dzw-tafel-palette-small{grid-template-columns:repeat(5,24px);max-width:128px}.dzw-tafel-left .dzw-tafel-palette-small button{width:24px!important;height:16px!important;aspect-ratio:auto}.dzw-tafel-left .dzw-tafel-panel button:disabled{cursor:not-allowed}.dzw-tafel-left .dzw-tafel-panel input[type=color]{height:32px}.dzw-tafel-left .dzw-tafel-panel .dzw-tafel-corner-buttons button{opacity:1}.dzw-tafel-left .dzw-tafel-panel .dzw-tafel-frame-toggle{opacity:1}.dzw-tafel-left .dzw-tafel-palette-small button:not(:disabled){opacity:1}.dzw-tafel-left .dzw-tafel-palette-small button:disabled{opacity:.45}
@media(max-width:820px){.dzw-tafel-layout.dzw-tafel-editor{grid-template-columns:minmax(0,1fr)}.dzw-tafel-layout>.preview{position:static;grid-row:1}.admin-bar .dzw-tafel-layout>.preview{top:auto}}

.dzw-tafel-left .dzw-tafel-extra-box{padding-top:8px}.dzw-tafel-left .dzw-tafel-extra-box label{margin:0 0 4px}.dzw-tafel-left .dzw-tafel-extra-box .dzw-tafel-sub-label{margin-top:5px!important}.dzw-tafel-left .dzw-tafel-extra-box input[type=color]{width:76px!important;max-width:100%;height:26px;padding:2px 4px;cursor:pointer}.dzw-tafel-left .dzw-tafel-extra-box .dzw-tafel-palette-small{grid-template-columns:repeat(5,minmax(0,24px));width:100%;gap:2px;margin:4px 0 6px}.dzw-tafel-left .dzw-tafel-extra-box .dzw-tafel-palette-small button{width:100%!important;max-width:24px}.dzw-tafel-left .dzw-tafel-extra-box input[type=color]:disabled{cursor:default}

.dzw-tafel-editor .dzw-text-actions{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0}.dzw-tafel-editor .dzw-text-actions button{font-size:11px!important;padding:5px 4px!important;min-width:0;line-height:1.25;flex:1 1 auto;white-space:nowrap}.dzw-tafel-editor label[for="dzw-tafel-textsize"]{margin-top:7px;font-size:13px}

.dzw-tafel-editor .obj.dzw-tafel-straight-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;box-sizing:border-box;min-width:0;max-width:none}

.dzw-tafel-editor #dzw-tafel-newtext{display:block;width:100%;min-height:76px;resize:vertical;padding:8px;border:1px solid #b9c5cc;border-radius:5px;background:white;color:#183247;font:inherit;box-sizing:border-box}.dzw-tafel-editor .dzw-position-actions{gap:4px;margin:8px 0}.dzw-tafel-editor .dzw-position-actions button{flex:1 1 auto;font-size:12px;padding:6px}.dzw-tafel-editor .dzw-tafel-controls button:disabled,.dzw-tafel-editor .dzw-tafel-controls input:disabled{opacity:.5;cursor:not-allowed}.dzw-tafel-editor .dzw-tafel-controls #dzw-tafel-new-element{font-weight:600}

#dzw-tafel-bold[aria-pressed="true"]{background:#176c89;color:white;}

#dzw-tafel-elements{display:grid;gap:5px;margin:6px 0}#dzw-tafel-elements .dzw-element-row{display:flex;align-items:center;text-align:left;gap:8px;width:100%;padding:7px;white-space:normal;overflow-wrap:anywhere;border:1px solid #b6c7d0;background:#f0f5f7;color:#173648;border-radius:4px}#dzw-tafel-elements .dzw-element-row[aria-pressed=true]{border:2px solid #176c89;background:#e1f1f7}#dzw-tafel-elements img,#dzw-tafel-elements .dzw-element-icon{width:36px;height:36px;object-fit:contain;flex:none}#dzw-tafel-elements .dzw-element-icon{display:grid;place-items:center;font-size:23px;font-weight:bold}#dzw-tafel-hole-d-all-wrap{margin:10px 0;padding:8px;border:1px solid #176c89;border-radius:4px;background:white}

#dzw-tafel-elements .dzw-element-row{cursor:grab}#dzw-tafel-elements .dzw-layer-grip{font-size:23px;line-height:1;color:#526774;flex:none;user-select:none}#dzw-tafel-elements .dzw-layer-dragging{opacity:.45}#dzw-tafel-elements .dzw-layer-drop{outline:2px dashed #176c89;outline-offset:1px;background:#d4edf5}#dzw-tafel-elements .dzw-element-row img{user-select:none;-webkit-user-drag:none}
