:root {
  --bg: #0f1216; --panel: #121821; --fg: #e8eef6;
  --line: rgba(255,255,255,.10); --footerH: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui; background: var(--bg); color: var(--fg); height: 100vh; overflow: hidden; }

.app { height: calc(100% - var(--footerH)); display: flex; position: relative; }
.sidebar { width: 174px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px; gap: 8px; }
.sidebar__spacer { flex: 1; }

/* Правая панель поверх холста */
.sidebar__section--minimap.stage-overlay {
  position: fixed; right: 10px; top: 30px; /* Сдвиг вниз от верхней линейки */
  width: 160px; background: rgba(18, 24, 33, 0.95);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.stage { flex: 1; background: #1a1a1a; position: relative; overflow: hidden; }
#canvas { width: 100%; height: 100%; display: block; }

.footer { height: var(--footerH); background: #0a0c0f; border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-size: 10px; color: #666; }

.btn { background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: #fff; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn--icon { width: 32px; height: 32px; }
.btn--tool { width: 42px; height: 42px; }
.ico, .tool-ico { width: 20px; height: 20px; }
.btnrow, .toolrow, .zoomrow { display: flex; gap: 6px; justify-content: center; }
.btncol { display: flex; flex-direction: column; gap: 6px; }

.drop { border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,0.2); margin-bottom: 4px; }
.drop__summary { cursor: pointer; padding: 5px 8px; font-size: 11px; list-style: none; display: flex; justify-content: space-between; }
.drop input { width: 90%; margin: 4px 5%; }