:root{--accent:#2b6cb0;--bg:#f7f9fb;--panel:#ffffff}
*{box-sizing:border-box;font-family:Inter, system-ui, Arial}
body{margin:0;background:var(--bg);color:#222}
main{max-width:1100px;margin:28px auto;padding:18px}
header h1{margin:0 0 6px}
.controls{display:flex;gap:18px}
.panel{background:var(--panel);padding:12px;border-radius:8px;flex:1;min-width:240px}
.panel h2{margin-top:0}
.list{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow:auto}
.list button{display:flex;align-items:center;gap:8px;padding:6px;border-radius:6px;border:1px solid #eee;background:#fafafa;cursor:pointer}
.list button img{width:120px;height:40px;object-fit:cover;border-radius:3px}
.drawing-select{display:flex;align-items:center;gap:8px}
.drawing-select select{flex:1;padding:8px;border-radius:6px;border:1px solid #ddd;background:white}
.drawing-select img{width:120px;height:40px;object-fit:cover;border-radius:3px;border:1px solid #eee}
.actions{margin-top:10px;display:flex;gap:8px}
input[type=text],input[type=search],#message{width:100%;padding:8px;border-radius:6px;border:1px solid #ddd}
.preview{margin-top:18px;background:var(--panel);padding:12px;border-radius:8px}
#previewContainer{width:100%;height:360px;display:flex;align-items:center;justify-content:center}
svg.canvas{width:100%;height:auto;border:1px dashed #ddd;background:white}

.note{font-size:13px;color:#666}

@media (max-width:900px){.controls{flex-direction:column}}
