/* ── Mobile layout editor (only active with ?edit) ───────────────────────── */
.editing .drag-group {
  cursor: grab;
  outline: 1.5px dashed rgba(120,110,200,.85);
  outline-offset: 6px;
  border-radius: 4px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.editing .drag-group.selected {
  outline-color: #6a5ad0;
  outline-style: solid;
}
.editing .drag-group.dragging {
  cursor: grabbing;
  opacity: .9;
  outline-color: rgba(80,70,180,1);
}
/* links shouldn't navigate while you're dragging them */
.editing .links a { pointer-events: none; }

.edit-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(18,14,30,.94);
  color: #f3f0fb;
  font: 13px/1.3 'Inter', system-ui, sans-serif;
  z-index: 100;
  box-shadow: 0 -4px 18px rgba(0,0,0,.3);
}
.edit-bar b { color: #c8b8e8; font-weight: 600; }
.edit-hint { opacity: .8; }
.edit-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.size-ctl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 3px;
}
.size-ctl #selName {
  min-width: 58px;
  text-align: center;
  font-weight: 600;
  color: #c8b8e8;
}
.edit-bar button {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
}
.size-ctl button { padding: 7px 12px; background: rgba(255,255,255,.16); color: #f3f0fb; }
#saveLayout { background: #c8b8e8; color: #221a38; }
#resetLayout { background: rgba(255,255,255,.14); color: #f3f0fb; }
