* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; font-family: Arial, sans-serif; }
body { overflow: hidden; background: linear-gradient(135deg,#1e3c72,#2a5298); }
button, input, select { font-family: inherit; }
.hidden { display: none !important; }

/* ===== Unit selection screen ===== */
.unit-screen {
  width: 340px;
  margin: 110px auto;
  padding: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: #fff;
  text-align: center;
}
.unit-screen h1 { margin: 0 0 4px; }
.unit-screen-sub { color: #bcd; margin-top: 0; font-size: 13px; }
.unit-screen label { display: block; margin: 20px 0 8px; font-weight: bold; text-align: left; }
.unit-screen select, .unit-screen button { width: 100%; padding: 12px; font-size: 16px; border-radius: 8px; }
.unit-screen select { border: 1px solid #aaa; background: #fff; color: #222; }
.unit-screen button { margin-top: 18px; border: 0; background: #00aaff; color: #fff; font-weight: bold; cursor: pointer; }
.unit-screen button:hover { background: #0088cc; }

/* ===== Editor shell ===== */
.editor { width: 100vw; height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 52px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.topbar-logo { color: #00aaff; text-decoration: none; font-weight: bold; white-space: nowrap; }
.topbar-title { font-weight: bold; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.top-actions button, .top-file-btn {
  padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; font-size: 13px;
}
.top-actions button:hover, .top-file-btn:hover { background: rgba(255,255,255,0.18); }

.workspace { flex: 1; display: flex; min-height: 0; }

/* ===== Left toolbar ===== */
.left-toolbar { width: 140px; flex-shrink: 0; background: rgba(0,0,0,0.25); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.left-toolbar button {
  width: 100%; min-height: 60px; border: 0; border-bottom: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.06);
  background: transparent; color: #cde; cursor: pointer; font-size: 20px;
}
.left-toolbar button:hover { background: rgba(255,255,255,0.08); }
.left-toolbar button.active { background: #00aaff; color: #fff; }
.left-toolbar button span { display: block; font-size: 10px; margin-top: 3px; }

/* ===== Canvas area ===== */
.canvas-area { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.canvas-header {
  height: 46px; background: rgba(0,0,0,0.2); display: flex; align-items: center;
  gap: 14px; padding: 0 14px; color: #fff; font-size: 13px; flex-shrink: 0;
}
#selectionInfo { color: #9cf; }
.zoom-controls { margin-left: auto; display: flex; gap: 4px; }
.zoom-controls button { width: 32px; height: 28px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; border-radius: 4px; cursor: pointer; }

#floorCanvas {
  position: relative; flex: 1; overflow: hidden; cursor: default;
  background: rgba(0,0,0,0.15);
  touch-action: none; /* so drawing/dragging on a touchscreen doesn't fight the browser's own scroll/zoom gestures */
}
#floorCanvas.panning { cursor: grabbing; }
#canvasWorld { position: absolute; left: 0; top: 0; width: 3000px; height: 3000px; transform-origin: 0 0; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 25px 25px;
}
#wallSvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.wall-line { stroke: #cfd8e3; stroke-linecap: butt; stroke-linejoin: round; fill: none; cursor: pointer; }   /* butt: a wall ends exactly at its length, edge to edge */
.wall-line:hover { stroke: #fff; }
.wall-line.selected { stroke: #00aaff; }
.wall-center-line { stroke: rgba(0,0,0,0.3); stroke-width: 1; pointer-events: none; }
.preview-line { stroke: #ffd54f; stroke-width: 3; stroke-dasharray: 6 4; pointer-events: none; }

.door-arc { stroke: #ffd54f; stroke-width: 1.5; fill: none; opacity: 0.8; }
.door-leaf { stroke: #ffd54f; stroke-width: 2.5; }
.window-bar { stroke: #8be2ff; stroke-width: 5; }
.opening-marker.selected .door-leaf, .opening-marker.selected .window-bar { stroke: #fff; }

.wall-handle {
  position: absolute; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px;
  border-radius: 50%; background: #fff; border: 2px solid #00aaff; z-index: 50; cursor: pointer;
}
.wall-handle.connected { border-color: #8be28b; background: #d8ffd8; }
.wall-center-handle {
  position: absolute; width: 16px; height: 16px; margin-left: -8px; margin-top: -8px;
  border-radius: 50%; background: rgba(255,255,255,0.9); border: 2px solid #00aaff; z-index: 45; cursor: move;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: #00aaff;
}
.wall-center-handle::after { content: "↔"; }
.opening-handle {
  position: absolute; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px;
  border-radius: 3px; background: #ffd54f; border: 2px solid #fff; z-index: 48; cursor: ew-resize;
}

.dimension-label {
  position: absolute; transform: translate(-50%, -50%);
  padding: 2px 6px; background: rgba(0,0,0,0.55); color: #ffd54f;
  font-size: 11px; white-space: nowrap; cursor: pointer; border-radius: 3px; z-index: 40;
}
.dimension-label:hover { background: rgba(0,0,0,0.8); }
.dimension-label.selected { color: #fff; font-weight: bold; background: #00aaff; }

.fp-hint { color: #bcd; font-size: 12px; padding: 8px 14px; margin: 0; background: rgba(0,0,0,0.15); }

/* ===== Right toolbar ===== */
.right-toolbar { width: 220px; flex-shrink: 0; background: rgba(0,0,0,0.25); color: #fff; overflow-y: auto; }
.toolbar-title { padding: 12px; background: rgba(0,0,0,0.2); font-size: 14px; font-weight: bold; }
.structure-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.structure-grid button {
  height: 80px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #fff; cursor: pointer;
}
.structure-grid button:hover { background: rgba(255,255,255,0.1); }
.structure-grid b { display: block; font-size: 26px; margin-bottom: 4px; }
.structure-grid span { font-size: 10px; }

.wall-properties { border-top: 1px solid rgba(255,255,255,0.15); padding-bottom: 14px; }
.properties-title { padding: 10px 12px; background: rgba(0,0,0,0.2); font-weight: bold; font-size: 13px; }
.wall-properties label { display: block; margin: 10px 10px 4px; font-size: 12px; color: #bcd; }
.property-row { display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.property-row input {
  width: 100%; padding: 7px 8px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px; background: rgba(255,255,255,0.08); color: #fff;
}
.property-row span { font-size: 11px; color: #9cf; min-width: 35px; }
.property-value { margin: 0 10px; padding: 7px; background: rgba(0,0,0,0.2); border-radius: 4px; font-size: 13px; }
.wall-properties button {
  width: calc(100% - 20px); margin: 10px 10px 0; padding: 8px; border: 0; border-radius: 6px;
  background: #00aaff; color: #fff; font-weight: bold; cursor: pointer;
}
.wall-properties button:hover { background: #0088cc; }

@media (max-width: 800px) {
  .right-toolbar { width: 150px; }
  .left-toolbar { width: 112px; }
  .structure-grid { grid-template-columns: 1fr 1fr; }
  .topbar-title { display: none; }
  #selectionInfo { display: none; }
}

/* ===== Stairs ===== */
.stair-flight { fill: rgba(139,226,255,0.1); stroke: #8be2ff; stroke-width: 2; }
.stair-tread { stroke: #8be2ff; stroke-width: 1; opacity: 0.8; }
.stair-landing { fill: rgba(255,213,79,0.15); stroke: #ffd54f; stroke-width: 2; }
.stair-arrow { fill: #ffd54f; font-size: 11px; font-weight: bold; }
.fp-stair-group.selected .stair-flight { stroke: #00aaff; stroke-width: 3; }
.fp-stair-group.selected .stair-landing { stroke: #00aaff; }

/* ===== 3D view ===== */
.fp-3d-toolbar {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.5); padding: 8px 12px; border-radius: 8px;
  color: #fff; font-size: 13px;
}
.fp-3d-toolbar label { display: flex; align-items: center; gap: 6px; }
.fp-3d-toolbar input {
  padding: 5px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1); color: #fff;
}
.fp-3d-toolbar button {
  padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: #fff; cursor: pointer;
}
.fp-3d-toolbar button:hover { background: rgba(255,255,255,0.22); }
.fp-3d-hint { color: #9cf; font-size: 11px; }
#canvas3d { touch-action: none; cursor: grab; }

#overallDimsDisplay { color: #ffd54f; font-size: 12px; }

.wall-joint-cap { fill: #cfd8e3; pointer-events: none; }
.wall-joint-cap.selected { fill: #00aaff; }

/* ===== Furniture, labels, print (floorplan-extras.js) ===== */
#extrasSvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#extrasSvg .furn-item { pointer-events: all; cursor: move; }
.furn-body { fill: rgba(255,255,255,0.14); stroke: #9fc4e8; stroke-width: 1.5; }
.furn-detail { fill: none; stroke: #9fc4e8; stroke-width: 1.2; }
.furn-item.selected .furn-body { stroke: #00aaff; stroke-width: 2.5; stroke-dasharray: 5 3; fill: rgba(0,170,255,0.18); }
.furn-label-text { fill: #fff; font-size: 15px; font-weight: bold; pointer-events: none; user-select: none; }
.furn-label-hit { fill: rgba(0,0,0,0.001); stroke: none; }
.furn-item.selected .furn-label-hit { stroke: #00aaff; stroke-dasharray: 4 3; fill: rgba(0,170,255,0.12); }
#furnProperties button { display: block; width: calc(100% - 20px); margin: 8px 10px 0; padding: 8px; border: 0; border-radius: 6px; background: #00aaff; color: #fff; cursor: pointer; font-weight: bold; }
#furnProperties button:hover { background: #0088cc; }
.structure-grid button b { font-size: 22px; }

@media print {
  body { background: #fff !important; overflow: visible !important; }
  .topbar, .left-toolbar, .right-toolbar, .canvas-header .zoom-controls, .fp-hint, .unit-screen,
  .wall-handle, .wall-center-handle, .opening-handle, .grid { display: none !important; }
  .editor, .workspace, .canvas-area, #floorCanvas { height: auto !important; overflow: visible !important; background: #fff !important; }
  .canvas-header { background: #fff !important; color: #000 !important; }
  .wall-line { stroke: #222 !important; }
  .dimension-label { background: transparent !important; color: #000 !important; }
  .furn-body, .furn-detail { stroke: #333 !important; fill: none !important; }
  .furn-label-text { fill: #000 !important; }
  .door-arc, .door-leaf { stroke: #555 !important; }
  .window-bar { stroke: #1a73c8 !important; }
}


/* ===== Mobile / touch ===== */
.mobile-only { display: none; }
.done-drawing {
  position: absolute; right: 12px; bottom: 14px; z-index: 60; padding: 12px 18px; border: 0; border-radius: 24px;
  background: #28a745; color: #fff; font-weight: bold; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.unit-screen { max-width: 92vw; }
.editor { height: 100vh; height: 100dvh; }
#view3d { height: calc(100vh - 52px) !important; height: calc(100dvh - 52px) !important; }
@media (pointer: coarse) {
  .wall-handle { width: 18px; height: 18px; margin-left: -9px; margin-top: -9px; }
  .wall-center-handle { width: 24px; height: 24px; margin-left: -12px; margin-top: -12px; }
  .opening-handle { width: 18px; height: 18px; margin-left: -9px; margin-top: -9px; }
  .dimension-label { font-size: 13px; padding: 4px 8px; }
}
@media (max-width: 800px) {
  .mobile-only { display: inline-block; }
  .topbar { height: 48px; gap: 8px; padding: 0 8px; }
  .topbar-logo { font-size: 0; }
  .topbar-logo::before { content: "🏗️"; font-size: 20px; }
  .top-actions { gap: 5px; overflow-x: auto; max-width: calc(100vw - 60px); }
  .top-actions button, .top-file-btn { padding: 7px 9px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .workspace { flex-direction: column; }
  .canvas-area { order: 1; flex: 1; min-height: 0; }
  .left-toolbar { order: 2; width: 100%; height: 58px; display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; flex-shrink: 0; }
  .left-toolbar button { width: auto; min-width: 62px; min-height: 0; height: 58px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,0.08); font-size: 18px; flex-shrink: 0; }
  .right-toolbar { order: 3; display: none; width: 100%; max-height: 42vh; max-height: 42dvh; flex-shrink: 0; border-top: 2px solid #00aaff; }
  .right-toolbar.open { display: block; }
  .structure-grid { grid-template-columns: repeat(4, 1fr); }
  .structure-grid button { height: 64px; }
  .canvas-header { height: auto; min-height: 40px; flex-wrap: wrap; gap: 4px 10px; padding: 4px 10px; font-size: 12px; }
  .zoom-controls button { width: 36px; height: 32px; }
  .fp-hint { display: none; }
  .fp-3d-toolbar { flex-wrap: wrap; gap: 8px; right: 10px; padding: 6px 8px; font-size: 12px; }
  .fp-3d-hint { display: none; }
  .fp-3d-toolbar input { width: 54px !important; }
  .wall-properties input { font-size: 16px; } /* stops iOS zooming into inputs */
}

.snap-marker { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #00e676; background: rgba(0,230,118,0.25); pointer-events: none; z-index: 70; transform: rotate(45deg) scale(var(--inv-zoom, 1)); }

.stair-winder { fill: rgba(255,213,79,0.22); stroke: #ffd54f; stroke-width: 1.5; }
.stair-arrow-line { fill: none; stroke: #ffd54f; stroke-width: 2; stroke-linejoin: round; pointer-events: none; }
.stair-arrow-head { fill: #ffd54f; pointer-events: none; }
.stair-arrow { pointer-events: none; }
.move-bar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 80; background: rgba(10,25,55,0.92); color: #fff; padding: 6px 12px; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.4); max-width: 96%; flex-wrap: wrap; }
#lenBar button { padding: 7px 12px; border: 0; border-radius: 6px; background: #00aaff; color: #fff; font-weight: bold; font-size: 15px; cursor: pointer; }
#lenDirs { display: none; gap: 4px; }
.move-bar input { width: 150px; padding: 5px 8px; border-radius: 6px; border: 0; font-size: 14px; }
#moveInfo { color: #9fd8ff; }
.move-svg { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; z-index: 65; }

#openingFlipRow button, #furnProperties button { display:block; width:calc(100% - 20px); margin:8px 10px 0; padding:8px; border:0; border-radius:6px; background:#00aaff; color:#fff; cursor:pointer; font-weight:bold; }
.dim-line { stroke:#ffd54f; stroke-width:1.4; fill:none; }
.dim-ext { stroke:#ffd54f; stroke-width:1; stroke-dasharray:3 2; fill:none; }
.dim-text { fill:#fff; font-size:13px; font-weight:bold; text-anchor:middle; paint-order:stroke; stroke:#10244f; stroke-width:3px; pointer-events:none; user-select:none; }
.furn-item.selected .dim-line { stroke:#00e5ff; stroke-width:2.4; }
.multi-hl { fill:rgba(0,229,255,0.12); stroke:#00e5ff; stroke-width:2; stroke-dasharray:6 3; pointer-events:none; }
.corner-dot { stroke:#fff; stroke-width:1.5; pointer-events:none; }
#detachButton.active, #cornerButton.active, #pan3dButton.active { background:#00aaff; }
.fp-3d-toolbar #pan3dButton { margin-left:8px; }
.print-box { position:absolute; border:2px dashed #ff5252; background:rgba(255,82,82,0.1); pointer-events:none; z-index:90; }
.furn-body.furn-green { fill: rgba(76,175,80,0.35); stroke: #7bd37f; }

/* zoom box: the percentage must fit inside */
.zoom-controls #zoomResetButton { width: auto; min-width: 62px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
@media (max-width: 800px) { .zoom-controls #zoomResetButton { min-width: 58px; font-size: 12px; } }
.slab-fill { fill: rgba(176,190,197,0.30); stroke: #b0bec5; stroke-width: 2; fill-rule: evenodd; }
.slab-hole { fill: none; stroke: #ffab40; stroke-width: 1.5; stroke-dasharray: 5 3; }
.furn-item.selected .slab-fill { stroke: #00e5ff; stroke-width: 3; }
.slab-hatch { stroke: rgba(176,190,197,0.35); stroke-width: 1; }
#wallProperties select, #stairProperties select, #furnProperties select { width: 100%; padding: 6px; border-radius: 6px; border: 0; }


/* ===== v3: drop-down sections, floors, arcs, ghost floors ===== */
.fp-dd { border-bottom: 1px solid rgba(255,255,255,0.12); }
.fp-dd > summary { padding: 12px; background: rgba(0,0,0,0.2); font-size: 14px; font-weight: bold; cursor: pointer; list-style: none; user-select: none; display: flex; justify-content: space-between; align-items: center; }
.fp-dd > summary::-webkit-details-marker { display: none; }
.fp-dd > summary::after { content: "▾"; font-size: 12px; opacity: 0.8; transition: transform .15s; }
.fp-dd:not([open]) > summary::after { transform: rotate(-90deg); }
.fp-dd > summary:hover { background: rgba(255,255,255,0.08); }

.fp-floor-list { padding: 6px 8px 0; }
.fp-floor-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 3px 4px; border-radius: 6px; border: 1px solid transparent; }
.fp-floor-row.active { background: rgba(0,170,255,0.22); border-color: #00aaff; }
.fp-floor-row input[type=checkbox] { flex: none; width: 15px; height: 15px; }
.fp-floor-row input[type=number] { width: 50px; padding: 3px 4px; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; background: rgba(255,255,255,0.08); color: #fff; font-size: 12px; }
.fp-floor-row span { font-size: 11px; color: #bcd; }
.fp-floor-name { flex: 1; min-width: 0; text-align: left; background: transparent; border: 0; color: #fff; font-size: 12px; font-weight: bold; cursor: pointer; padding: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-floor-del { flex: none; background: transparent; border: 0; color: #ff8a80; cursor: pointer; font-size: 12px; padding: 2px 4px; }
.fp-floor-actions { display: flex; gap: 6px; padding: 4px 8px; }
.fp-floor-actions button { flex: 1; padding: 7px 4px; border: 0; border-radius: 6px; background: #00aaff; color: #fff; font-weight: bold; font-size: 12px; cursor: pointer; }
.fp-check { display: block; padding: 4px 10px; font-size: 12px; color: #bcd; cursor: pointer; }
.fp-note { margin: 0; padding: 2px 10px 10px; font-size: 11px; color: #9bb; line-height: 1.4; }
.fp-floor-badge { color: #ffd54f; font-weight: bold; white-space: nowrap; }

#ghostSvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ghost-wall { stroke: rgba(255,255,255,0.20); stroke-linecap: butt; fill: none; }
.ghost-above .ghost-wall { stroke: rgba(255,213,79,0.22); }
.ghost-slab { fill: rgba(176,190,197,0.08); stroke: rgba(255,255,255,0.18); stroke-dasharray: 6 4; }
.ghost-stair { fill: none; stroke: rgba(255,255,255,0.2); }

.wall-arc-handle { position: absolute; width: 11px; height: 11px; margin-left: -5px; margin-top: -5px; background: #00e5ff; border: 2px solid #fff; transform: rotate(45deg); z-index: 49; cursor: grab; }
.slab-edge-handle { position: absolute; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px; background: #ffab40; border: 2px solid #fff; z-index: 49; cursor: move; }
.slab-edge-handle.bend { border-radius: 50%; background: #00e5ff; }

.preview-body { fill: rgba(0,229,255,0.22); stroke: #00e5ff; stroke-width: 1; pointer-events: none; }
.fp-side { font-size: 12px; color: #cfe; white-space: nowrap; }
.fp-side select { font-size: 12px; padding: 2px; }

/* both faces of every wall, thin and always visible */
.wall-face { stroke: #8da2b9; stroke-opacity: 0.85; stroke-width: 1px; fill: none; vector-effect: non-scaling-stroke; pointer-events: none; stroke-linecap: butt; }
/* header drop-down menus */
.fp-menu { position: relative; }
.fp-menu-list { display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; min-width: 240px; background: #12263f; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: 4px; z-index: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.fp-menu.open .fp-menu-list { display: block; }
.top-actions .fp-menu-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; white-space: nowrap; }
.top-actions .fp-menu-list button:hover { background: rgba(255,255,255,0.14); }
.plain-line { stroke: #e8edf3; stroke-width: 2px; fill: none; vector-effect: non-scaling-stroke; }
.furn-item.selected .plain-line { stroke: #00e5ff; stroke-width: 3px; }
.rot-centre { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #ff5252; border-radius: 50%; pointer-events: none; z-index: 71; }
.rot-centre::before, .rot-centre::after { content: ""; position: absolute; background: #ff5252; }
.rot-centre::before { left: 7px; top: -5px; width: 2px; height: 24px; }
.rot-centre::after { top: 7px; left: -5px; height: 2px; width: 24px; }

.corner-dot, #mvBase { transform-box: fill-box; transform-origin: center; transform: scale(var(--inv-zoom, 1)); }

/* handles keep one size on screen however far you zoom in or out */
.wall-handle, .wall-center-handle, .opening-handle, .slab-edge-handle { transform: scale(var(--inv-zoom, 1)); }
.wall-arc-handle { transform: rotate(45deg) scale(var(--inv-zoom, 1)); }
/* no scroll bar under the toolbars (they still scroll by swipe or wheel), so it never covers the buttons */
.topbar, .top-actions, .left-toolbar { scrollbar-width: none; -ms-overflow-style: none; }
.topbar::-webkit-scrollbar, .top-actions::-webkit-scrollbar, .left-toolbar::-webkit-scrollbar { display: none; width: 0; height: 0; }
