:root{
  --bg:#f7f7fb;
  --muted:#666;
  --accent:#6b8cff;
  --panel:#ffffff;
  --shadow: 0 6px 18px rgba(30,30,60,0.06);
}

*{box-sizing:border-box;font-family:Inter, Roboto, Arial, sans-serif}

body{
  margin:0;
  background:var(--bg);
  color:#222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  background:var(--panel);
  box-shadow:var(--shadow);
  gap:10px;
}

.topbar .left, .topbar .center, .topbar .right{
  display:flex;
  align-items:center;
  gap:8px;
}

button{
  background:#fff;
  border:1px solid #ddd;
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
}
button:hover{transform:translateY(-1px)}
.imagename{font-weight:600;color:var(--muted);margin-left:6px}

.main{
  display:flex;
  gap:20px;
  padding:20px;
  align-items:flex-start;
}

.palette{
  width:220px;
  background:var(--panel);
  padding:14px;
  border-radius:10px;
  box-shadow:var(--shadow);
}

.preset-colors{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.color-btn{
  width:36px;
  height:36px;
  border-radius:8px;
  border:1px solid #e5e5e5;
  cursor:pointer;
}

.picker-label{
  display:block;
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
}

.help{margin-top:12px;font-size:13px;color:var(--muted)}

.canvas-wrap{
  flex:1;
  background:var(--panel);
  padding:16px;
  border-radius:10px;
  box-shadow:var(--shadow);
  display:flex;
  justify-content:center;
  align-items:center;
}

canvas{
  border:1px solid #ddd;
  max-width:100%;
  height:auto;
  background:#fff;
  image-rendering:pixelated;
}

#volumeSlider{
  width:120px;
  display:none;
  margin-left:6px;
}

