:root {
  --bg: #0a0a0a;
  --panel: #121212cc;
  --border: #ffffff1a;
  --text: #eee;
  --muted: #aaa;
  --accent: #10b981;
  --brand: #34d399;
}
html, body, #app { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; backdrop-filter: blur(10px);
  background: var(--panel); border-bottom: 1px solid var(--border); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .4px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.toolbar, .right { display: flex; align-items: center; gap: 8px; }
.toolbar { margin-left: 11px; background: #1a1a1acc; padding: 6px; border-radius: 12px; border: 1px solid var(--border); width: -webkit-fill-available; padding-left: 6px;}
.divider { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }

.btn {
  background: #1e1e1e; color: var(--text); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.btn:hover { background: #2a2a2a; }
.btn.primary { background: #0d7a5f; border-color: #0d7a5f; }
.btn.primary:hover { background: #119d79; }

.toggle, .num, .select { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.num input { width: 72px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; }
.select select { background: #1e1e1e; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }

.sidebar {
  display: none !important;
  position: fixed; top: 64px; bottom: 54px; left: 14px; width: 260px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; overflow: hidden;
}
@media (min-width: 1024px) { .sidebar { display: block; } }
.heading { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.list { height: calc(100% - 22px); overflow: auto; padding-right: 6px; }
.list .item {
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: #1a1a1a99; border: 1px solid var(--border); color: #ddd; margin-bottom: 6px;
}
.list .item:hover { background: #222; }
.list .item.active { background: #083d31; border-color: #1cb38d; color: #b6ffe9; }

.viewport { position: fixed; top: 54px; left: 0; right: 0; bottom: 36px; }
.drop-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.drop-hint.hidden { display: none; }
.hint-box { border: 2px dashed var(--border); background: #1118; border-radius: 16px; padding: 18px 22px; text-align: center; backdrop-filter: blur(6px); }
.hint-title { color: #eee; font-weight: 600; }
.hint-sub { color: #bbb; font-size: 13px; margin-top: 4px; }

.footer {
  position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%);
  color: #aaa; font-size: 12px;
  display: flex; align-items: center; gap: 12px;
  justify-content: space-between;
}

.d-none{
  display: none !important;
}
#viewport {
  background-color: #f4f4f9; /* Light gray background for the canvas */
}

.control-buttons {
  display: flex;
  gap: 10px;
  padding: 20px;
  justify-content: center;
}

.control-btn {
  padding: 12px 24px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.control-btn:hover {
  background-color: #b71c1c;
}

.control-btn:active {
  transform: scale(0.98);
}