:root {
  --bg: #0b0b0d;
  --panel: #111214;
  --muted: #9aa0a6;
  --accent: #6ee7b7;
  --card: #131316;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
}
body {
  background: linear-gradient(180deg, #070708 0%, #0f0f10 100%);
  color: #e6eef3;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}
.title {
  font-weight: 700;
  font-size: 18px;
}
.controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

button,
select,
input[type="range"] {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
button:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

main {
  max-width: 900px;
  margin: 24px auto;
  padding: 8px;
}
.canvas {
  min-height: 60vh;
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.005)
  );
  box-shadow: 0 6px 20px rgba(2, 6, 10, 0.6);
}

.block {
  position: relative;
  margin: 18px 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}
.block:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* overlay toolbar placed on top of the block */
.block .overlay {
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 20;
  backdrop-filter: blur(4px);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35),
    rgba(255, 255, 255, 0.02)
  );
}

.text-content[contenteditable] {
  min-height: 60px;
  outline: none;
}
.text-content.small {
  font-size: 14px;
}
.text-content.medium {
  font-size: 18px;
}
.text-content.large {
  font-size: 24px;
}

.img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-wrap img {
  max-width: 100%;
  border-radius: 6px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* small responsive */
@media (max-width: 640px) {
  .toolbar {
    flex-wrap: wrap;
  }
  .controls {
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }
}
